MCPcopy
hub / github.com/uber-go/zap / AddStacktrace

Function AddStacktrace

options.go:116–120  ·  view source on GitHub ↗

AddStacktrace configures the Logger to record a stack trace for all messages at or above a given level.

(lvl zapcore.LevelEnabler)

Source from the content-addressed store, hash-verified

114// AddStacktrace configures the Logger to record a stack trace for all messages at
115// or above a given level.
116func 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.

Callers 3

withLoggerFunction · 0.92
buildOptionsMethod · 0.85

Calls 1

optionFuncFuncType · 0.70

Tested by 2

withLoggerFunction · 0.74