add Log() and Logf()

This commit is contained in:
Jeff Carr 2025-09-09 17:15:08 -05:00
parent c0f0414ff8
commit cd656f489e
1 changed files with 11 additions and 0 deletions

11
log.go Normal file
View File

@ -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...))
}