NewAtomicLevelAt is a convenience function that creates an AtomicLevel and then calls SetLevel with the given level.
(l zapcore.Level)
| 85 | // NewAtomicLevelAt is a convenience function that creates an AtomicLevel |
| 86 | // and then calls SetLevel with the given level. |
| 87 | func NewAtomicLevelAt(l zapcore.Level) AtomicLevel { |
| 88 | a := NewAtomicLevel() |
| 89 | a.SetLevel(l) |
| 90 | return a |
| 91 | } |
| 92 | |
| 93 | // ParseAtomicLevel parses an AtomicLevel based on a lowercase or all-caps ASCII |
| 94 | // representation of the log level. If the provided ASCII representation is |