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

Method disabled

log.go:512–514  ·  view source on GitHub ↗

disabled returns true if the logger is a disabled or nop logger.

()

Source from the content-addressed store, hash-verified

510
511// disabled returns true if the logger is a disabled or nop logger.
512func (l *Logger) disabled() bool {
513 return l.w == nil || l.level == Disabled
514}
515
516// should returns true if the log event should be logged.
517func (l *Logger) should(lvl Level) bool {

Callers 2

UpdateContextMethod · 0.95
shouldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected