Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Engine string `yaml:"engine"` // 日志引擎 Level string `yaml:"level"` // 级别 Prefix string `yaml:"prefix"` // 日志前缀 Format string `yaml:"format"` // 输出 Director string `yaml:"director"` // 日志文件夹 Encoder string `yaml:"encoder"` // 编码级 StacktraceKey string `yaml:"stacktrace-key"` // 栈名 MaxAge int64 `yaml:"max-age"` // 日志留存时间 ShowLine bool `yaml:"show-line"` // 显示行 Std bool `yaml:"std"` // 是否控制台打印 }
Click to show internal directories.
Click to hide internal directories.