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

Function Development

options.go:83–87  ·  view source on GitHub ↗

Development puts the logger in development mode, which makes DPanic-level logs panic instead of simply logging an error.

()

Source from the content-addressed store, hash-verified

81// Development puts the logger in development mode, which makes DPanic-level
82// logs panic instead of simply logging an error.
83func Development() Option {
84 return optionFunc(func(log *Logger) {
85 log.development = true
86 })
87}
88
89// AddCaller configures the Logger to annotate each message with the filename,
90// line number, and function name of zap's caller. See also WithCaller.

Callers 6

TestGlobalsConcurrentUseFunction · 0.85
TestNewStdLogAtPanicsFunction · 0.85
TestLoggerDPanicFunction · 0.85
TestLoggerCustomOnPanicFunction · 0.85
buildOptionsMethod · 0.85

Calls 1

optionFuncFuncType · 0.70

Tested by 5

TestGlobalsConcurrentUseFunction · 0.68
TestNewStdLogAtPanicsFunction · 0.68
TestLoggerDPanicFunction · 0.68
TestLoggerCustomOnPanicFunction · 0.68