MCPcopy
hub / github.com/rs/zerolog / Print

Method Print

log.go:454–458  ·  view source on GitHub ↗

Print sends a log event using debug level and no extra field. Arguments are handled in the manner of fmt.Print.

(v ...interface{})

Source from the content-addressed store, hash-verified

452// Print sends a log event using debug level and no extra field.
453// Arguments are handled in the manner of fmt.Print.
454func (l *Logger) Print(v ...interface{}) {
455 if e := l.Debug(); e.Enabled() {
456 e.CallerSkipFrame(1).Msg(fmt.Sprint(v...))
457 }
458}
459
460// Printf sends a log event using debug level and no extra field.
461// Arguments are handled in the manner of fmt.Printf.

Callers 10

ExampleLogger_PrintFunction · 0.80
ExampleLogger_WriteFunction · 0.80
TestHookFunction · 0.80
ExampleLogger_PrintFunction · 0.80
ExampleLogger_WriteFunction · 0.80
TestNewWriterFunction · 0.80
TestCloseFunction · 0.80
WriteMethod · 0.80
BenchmarkFunction · 0.80
ExampleNewWriterFunction · 0.80

Calls 4

DebugMethod · 0.95
MsgMethod · 0.80
CallerSkipFrameMethod · 0.80
EnabledMethod · 0.45

Tested by 10

ExampleLogger_PrintFunction · 0.64
ExampleLogger_WriteFunction · 0.64
TestHookFunction · 0.64
ExampleLogger_PrintFunction · 0.64
ExampleLogger_WriteFunction · 0.64
TestNewWriterFunction · 0.64
TestCloseFunction · 0.64
WriteMethod · 0.64
BenchmarkFunction · 0.64
ExampleNewWriterFunction · 0.64