Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CHLogger ¶
func Product ¶
Product return Config{ Level: NewAtomicLevelAt(InfoLevel), Development: false, Sampling: &SamplingConfig{ Initial: 100, Thereafter: 100, }, Encoding: "json", EncoderConfig: NewProductionEncoderConfig(), OutputPaths: []string{"stderr"}, ErrorOutputPaths: []string{"stderr"}, } Product json InfoLevel ErrorLevelStacktrace
type Config ¶
type Config struct { Dev bool `json:"dev" yaml:"dev" mapstructure:"dev"` Name string `json:"name" yaml:"name" mapstructure:"name"` Roll bool `json:"roll" roll:"tick" mapstructure:"roll"` //product RollConfig RollConfig `json:"rollConfig" yaml:"rollConfig" mapstructure:"rollConfig"` //product LogFiles []string `json:"logFiles" yaml:"logFiles" mapstructure:"logFiles"` //product InnerFiles []string `json:"innerFiles" yaml:"innerFiles" mapstructure:"innerFiles"` //product Sampler bool `json:"sampler" yaml:"sampler" mapstructure:"sampler"` //product SamplingConfig SamplingConfig `json:"samplingConfig" yaml:"samplingConfig" mapstructure:"samplingConfig"` //product InitialFields map[string]interface{} `json:"initialFields" yaml:"initialFields" mapstructure:"initialFields"` DisableCaller bool `json:"disableCaller" yaml:"disableCaller" mapstructure:"disableCaller"` DisableStacktrace bool `json:"disableStacktrace" yaml:"disableStacktrace" mapstructure:"disableStacktrace"` }
type RollConfig ¶
type RollConfig struct { File string `json:"file" yaml:"file" mapstructure:"file"` MaxSize int `json:"maxSize" yaml:"maxSize" mapstructure:"maxSize"` MaxBackups int `json:"maxBackups" yaml:"maxBackups" mapstructure:"maxBackups"` MaxAge int `json:"maxAge" yaml:"maxAge" mapstructure:"maxAge"` Compress bool `json:"compress" yaml:"compress" mapstructure:"compress"` }
Click to show internal directories.
Click to hide internal directories.