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

Method Printf

log.go:462–466  ·  view source on GitHub ↗

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

(format string, v ...interface{})

Source from the content-addressed store, hash-verified

460// Printf sends a log event using debug level and no extra field.
461// Arguments are handled in the manner of fmt.Printf.
462func (l *Logger) Printf(format string, v ...interface{}) {
463 if e := l.Debug(); e.Enabled() {
464 e.CallerSkipFrame(1).Msg(fmt.Sprintf(format, v...))
465 }
466}
467
468// Println sends a log event using debug level and no extra field.
469// Arguments are handled in the manner of fmt.Println.

Callers 9

ExampleLogger_PrintfFunction · 0.80
ExampleLogger_PrintfFunction · 0.80
TestNewWriterFunction · 0.80
TestFatalFunction · 0.80
ExampleNewWriterFunction · 0.80
mainFunction · 0.80
processInputFunction · 0.80
mainFunction · 0.80

Calls 4

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

Tested by 6

ExampleLogger_PrintfFunction · 0.64
ExampleLogger_PrintfFunction · 0.64
TestNewWriterFunction · 0.64
TestFatalFunction · 0.64
ExampleNewWriterFunction · 0.64