AddStacktrace configures the Logger to record a stack trace for all messages at or above a given level.
(lvl zapcore.LevelEnabler)
| 114 | // AddStacktrace configures the Logger to record a stack trace for all messages at |
| 115 | // or above a given level. |
| 116 | func AddStacktrace(lvl zapcore.LevelEnabler) Option { |
| 117 | return optionFunc(func(log *Logger) { |
| 118 | log.addStack = lvl |
| 119 | }) |
| 120 | } |
| 121 | |
| 122 | // IncreaseLevel increase the level of the logger. It has no effect if |
| 123 | // the passed in level tries to decrease the level of the logger. |