Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { Development bool `json:"development" yaml:"development" toml:"development"` // 是否开发环境 Level string `json:"level" yaml:"level" toml:"level"` // 日志等级,DEBUG,INFO,WARN,ERROR,FATAL Encoding string `json:"encoding" yaml:"encoding" toml:"encoding"` // encoding = json; console OutputPaths []string `json:"outputPaths" yaml:"outputPaths" toml:"outputPaths"` // 日志文件输出路径列表,stdout和stderr内置 ErrorOutputPaths []string `json:"errorOutputPaths" yaml:"errorOutputPaths" toml:"errorOutputPaths"` // 错误日志文件输出路径列表,stdout和stderr内置 InitialFields map[string]interface{} `json:"initialFields" yaml:"initialFields" toml:"initialFields"` // 默认字段,每条日志都包含 }
Click to show internal directories.
Click to hide internal directories.