disabled returns true if the logger is a disabled or nop logger.
()
| 510 | |
| 511 | // disabled returns true if the logger is a disabled or nop logger. |
| 512 | func (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. |
| 517 | func (l *Logger) should(lvl Level) bool { |
no outgoing calls
no test coverage detected