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

Method Println

log.go:470–474  ·  view source on GitHub ↗

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

(v ...interface{})

Source from the content-addressed store, hash-verified

468// Println sends a log event using debug level and no extra field.
469// Arguments are handled in the manner of fmt.Println.
470func (l *Logger) Println(v ...interface{}) {
471 if e := l.Debug(); e.Enabled() {
472 e.CallerSkipFrame(1).Msg(fmt.Sprintln(v...))
473 }
474}
475
476// Write implements the io.Writer interface. This is useful to set as a writer
477// for the standard library log.

Callers 15

ExampleLogger_PrintlnFunction · 0.80
ExampleLogger_WithFunction · 0.80
ExampleLogger_LevelFunction · 0.80
ExampleLogger_SampleFunction · 0.80
ExampleLogger_HookFunction · 0.80
ExampleLogger_PrintFunction · 0.80
ExampleLogger_PrintfFunction · 0.80
ExampleLogger_TraceFunction · 0.80
ExampleLogger_DebugFunction · 0.80
ExampleLogger_InfoFunction · 0.80
ExampleLogger_WarnFunction · 0.80
ExampleLogger_ErrorFunction · 0.80

Calls 4

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

Tested by 15

ExampleLogger_PrintlnFunction · 0.64
ExampleLogger_WithFunction · 0.64
ExampleLogger_LevelFunction · 0.64
ExampleLogger_SampleFunction · 0.64
ExampleLogger_HookFunction · 0.64
ExampleLogger_PrintFunction · 0.64
ExampleLogger_PrintfFunction · 0.64
ExampleLogger_TraceFunction · 0.64
ExampleLogger_DebugFunction · 0.64
ExampleLogger_InfoFunction · 0.64
ExampleLogger_WarnFunction · 0.64
ExampleLogger_ErrorFunction · 0.64