Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogConf ¶
type LogConf struct { // 注意:轮转后旧的日志文件名自动带日期(UTC时间),建议在名字上带上utc。 InfoFile string // 可选。请写绝对路径。默认值:可执行程序目录/log/info_utc.log ErrorFile string // 可选。请写绝对路径。默认值:可执行程序目录/log/error_utc.log MaxSize int // 可选。MB。默认值:1000 MaxBackups int // 可选。保留旧日志文件的最大数量,默认值:1000 MaxAge int // 可选。保留旧日志的最大天数,默认值:90 OutFormat bool // 可选。默认值为False,输出格式为json,设置为True时输出格式为str。 }
注意:轮转后旧的日志文件名自动带日期(UTC时间),建议在名字上带上utc。
Click to show internal directories.
Click to hide internal directories.