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

Function WrapOptions

zaptest/logger.go:55–59  ·  view source on GitHub ↗

WrapOptions adds zap.Option's to a test Logger built by NewLogger.

(zapOpts ...zap.Option)

Source from the content-addressed store, hash-verified

53
54// WrapOptions adds zap.Option's to a test Logger built by NewLogger.
55func WrapOptions(zapOpts ...zap.Option) LoggerOption {
56 return loggerOptionFunc(func(opts *loggerOptions) {
57 opts.zapOptions = zapOpts
58 })
59}
60
61// NewLogger builds a new Logger that logs all messages to the given
62// testing.TB.

Calls 1

loggerOptionFuncFuncType · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…