summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 17:15:08 -0500
committerJeff Carr <[email protected]>2025-09-09 17:15:08 -0500
commitcd656f489e14ae47f8c2fb4304a58a85037556a2 (patch)
tree58ee01562af27f5ee7ae9e57a02b9a932604ed93
parentc0f0414ff8a058f7d3d2d10af9a2ae2b8e3a46a2 (diff)
add Log() and Logf()
-rw-r--r--log.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/log.go b/log.go
new file mode 100644
index 0000000..c9cb4f4
--- /dev/null
+++ b/log.go
@@ -0,0 +1,11 @@
+package httppb
+
+import "fmt"
+
+func (pb *HttpRequest) Log(a ...any) {
+ pb.Logs = append(pb.Logs, fmt.Sprint(a...))
+}
+
+func (pb *HttpRequest) Logf(s string, a ...any) {
+ pb.Logs = append(pb.Logs, fmt.Sprintf(s, a...))
+}