Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option struct { Output []*Output `mapstructure:"output" json:"output" yaml:"output"` Name string `json:"name" yaml:"name"` ShowLine bool `json:"showLine" yaml:"showLine"` ShowStacktrace bool `json:"ShowStacktrace" yaml:"ShowStacktrace"` // 公共配置 Level string `json:"level" yaml:"level"` // Color bool `json:"color" yaml:"color"` Format string `json:"format" yaml:"format"` MessageKey string `json:"messageKey" yaml:"messageKey"` LevelKey string `json:"levelKey" yaml:"levelKey"` TimeKey string `json:"timeKey" yaml:"timeKey"` NameKey string `json:"nameKey" yaml:"nameKey"` CallerKey string `json:"callerKey" yaml:"callerKey"` FunctionKey string `json:"functionKey" yaml:"functionKey"` StacktraceKey string `json:"stacktraceKey" yaml:"stacktraceKey"` LineEnding string `json:"lineEnding" yaml:"lineEnding"` LevelEncoder string `json:"levelEncoder" yaml:"levelEncoder"` // capital,capitalColor, lower(default), lowerColor TimeFormat string `json:"timeFormat" yaml:"timeFormat"` }
type Output ¶
type Output struct { Writer string `json:"writer" yaml:"writer"` Level string `json:"level" yaml:"level"` Format string `json:"format" yaml:"format"` MessageKey string `json:"messageKey" yaml:"messageKey"` LevelKey string `json:"levelKey" yaml:"levelKey"` TimeKey string `json:"timeKey" yaml:"timeKey"` NameKey string `json:"nameKey" yaml:"nameKey"` CallerKey string `json:"callerKey" yaml:"callerKey"` FunctionKey string `json:"functionKey" yaml:"functionKey"` StacktraceKey string `json:"stacktraceKey" yaml:"stacktraceKey"` LineEnding string `json:"lineEnding" yaml:"lineEnding"` LevelEncoder string `json:"levelEncoder" yaml:"levelEncoder"` // capital, capitalColor, color, lower(default) TimeFormat string `json:"timeFormat" yaml:"timeFormat"` Option map[string]interface{} `json:"option" yaml:"option"` }
Click to show internal directories.
Click to hide internal directories.