Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReloadConfig ¶
func ReloadConfig(opt *Options)
Types ¶
type Logger ¶
type Options ¶
type Options struct { LogFileDir string `yaml:"logFileDir"` AppName string `yaml:"appName"` Platform string `yaml:"platform"` MaxSize int `yaml:"maxSize"` //文件多大开始切分 MaxBackups int `yaml:"maxBackups"` //保留文件个数 MaxAge int `yaml:"maxAge"` //文件保留最大实际 Level string `yaml:"level"` ToFile bool `yaml:"toFile"` // 是否写到文件 }
Click to show internal directories.
Click to hide internal directories.