diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 17:15:08 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 17:15:08 -0500 | 
| commit | cd656f489e14ae47f8c2fb4304a58a85037556a2 (patch) | |
| tree | 58ee01562af27f5ee7ae9e57a02b9a932604ed93 | |
| parent | c0f0414ff8a058f7d3d2d10af9a2ae2b8e3a46a2 (diff) | |
add Log() and Logf()
| -rw-r--r-- | log.go | 11 | 
1 files changed, 11 insertions, 0 deletions
@@ -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...)) +}  | 
