type go.uber.org/zap.Option
23 uses
go.uber.org/zap (current package)
config.go#L239: func (cfg Config) Build(opts ...Option) (*Logger, error) {
config.go#L264: func (cfg Config) buildOptions(errSink zapcore.WriteSyncer) []Option {
config.go#L265: opts := []Option{ErrorOutput(errSink)}
logger.go#L68: func New(core zapcore.Core, options ...Option) *Logger {
logger.go#L99: func NewProduction(options ...Option) (*Logger, error) {
logger.go#L107: func NewDevelopment(options ...Option) (*Logger, error) {
logger.go#L128: func NewExample(options ...Option) *Logger {
logger.go#L168: func (log *Logger) WithOptions(opts ...Option) *Logger {
options.go#L30: type Option interface {
options.go#L42: func WrapCore(f func(zapcore.Core) zapcore.Core) Option {
options.go#L55: func Hooks(hooks ...func(zapcore.Entry) error) Option {
options.go#L62: func Fields(fs ...Field) Option {
options.go#L75: func ErrorOutput(w zapcore.WriteSyncer) Option {
options.go#L83: func Development() Option {
options.go#L91: func AddCaller() Option {
options.go#L98: func WithCaller(enabled bool) Option {
options.go#L108: func AddCallerSkip(skip int) Option {
options.go#L116: func AddStacktrace(lvl zapcore.LevelEnabler) Option {
options.go#L124: func IncreaseLevel(lvl zapcore.LevelEnabler) Option {
options.go#L138: func OnFatal(action zapcore.CheckWriteAction) Option {
options.go#L155: func WithFatalHook(hook zapcore.CheckWriteHook) Option {
options.go#L163: func WithClock(clock zapcore.Clock) Option {
sugar.go#L76: func (s *SugaredLogger) WithOptions(opts ...Option) *SugaredLogger {
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. |