Enabled implements the zapcore.LevelEnabler interface, which allows the AtomicLevel to be used in place of traditional static levels.
(l zapcore.Level)
| 110 | // Enabled implements the zapcore.LevelEnabler interface, which allows the |
| 111 | // AtomicLevel to be used in place of traditional static levels. |
| 112 | func (lvl AtomicLevel) Enabled(l zapcore.Level) bool { |
| 113 | return lvl.Level().Enabled(l) |
| 114 | } |
| 115 | |
| 116 | // Level returns the minimum enabled log level. |
| 117 | func (lvl AtomicLevel) Level() zapcore.Level { |