Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalLevel ¶
Types ¶
type Config ¶
type Config struct { Level string `json:"level" yaml:"level" toml:"level"` Development bool `json:"development" yaml:"development" toml:"development"` DisableCaller bool `json:"disableCaller" yaml:"disableCaller" toml:"disableCaller"` DisableStacktrace bool `json:"disableStacktrace" yaml:"disableStacktrace" toml:"disableStacktrace"` Sampling *samplingConfig `json:"sampling" yaml:"sampling" toml:"sampling"` Encoding string `json:"encoding" yaml:"encoding" toml:"encoding"` EncoderConfig encoderConfig `json:"encoderConfig" yaml:"encoderConfig" toml:"encoderConfig"` OutputPaths []string `json:"outputPaths" yaml:"outputPaths" toml:"outputPaths"` ErrorOutputPaths []string `json:"errorOutputPaths" yaml:"errorOutputPaths" toml:"errorOutputPaths"` InitialFields map[string]interface{} `json:"initialFields" yaml:"initialFields" toml:"initialFields"` Rotate *rotateCfg `json:"rotate" yaml:"rotate"` SamplingHook func(zapcore.Entry) `json:"-" yaml:"-"` }
func NewDevConfig ¶
func NewDevConfig(opts ...option) Config
func NewProdConfig ¶
func NewProdConfig(opts ...option) Config
Click to show internal directories.
Click to hide internal directories.