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

Function Nop

log.go:258–260  ·  view source on GitHub ↗

Nop returns a disabled logger for which all operation are no-op.

()

Source from the content-addressed store, hash-verified

256
257// Nop returns a disabled logger for which all operation are no-op.
258func Nop() Logger {
259 return New(nil).Level(Disabled)
260}
261
262// Output duplicates the current logger and sets w as its output.
263func (l Logger) Output(w io.Writer) Logger {

Callers 3

initFunction · 0.85

Calls 2

NewFunction · 0.85
LevelMethod · 0.80

Tested by 2