summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log.go')
-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...))
+}