go.uber.org/zap.Logger.WithOptions (method)
9 uses
go.uber.org/zap (current package)
config.go#L259: log = log.WithOptions(opts...)
global.go#L79: logger := l.WithOptions(AddCallerSkip(_stdLogDefaultDepth + _loggerWriterDepth))
global.go#L87: logger := l.WithOptions(AddCallerSkip(_stdLogDefaultDepth + _loggerWriterDepth))
global.go#L128: logger := l.WithOptions(AddCallerSkip(_stdLogDefaultDepth + _loggerWriterDepth))
logger.go#L78: return log.WithOptions(options...)
logger.go#L138: return New(core).WithOptions(options...)
logger.go#L168: func (log *Logger) WithOptions(opts ...Option) *Logger {
logger.go#L205: return log.WithOptions(WrapCore(func(core zapcore.Core) zapcore.Core {
github.com/gotd/td/internal/tdsync
log_group.go#L42: l := g.log.With(zap.String("task", taskName)).WithOptions(zap.AddCallerSkip(1))
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |