代码拉取完成,页面将自动刷新
package log
import "time"
type ZapCnfKey struct {
}
type ZapCnf struct {
Debug bool //调试模式 本地打印
Level string
Net string
Addr string
Tag string
//log rotate配置,如下
// filename is the file to write logs to. Backup log files will be retained
// in the same directory. It uses <processname>-lumberjack.log in
// os.TempDir() if empty.
Filename string
// maxSize is the maximum size in bytes of the log file before it gets
// rotated.
MaxSize int64
// maxAge is the maximum time to retain old log files based on the timestamp
// encoded in their filename. The default is not to remove old log files
// based on age.
MaxAge time.Duration
// maxBackups is the maximum number of old log files to retain. The default
// is to retain all old log files (though MaxAge may still cause them to get
// deleted.)
MaxBackups int
// localTime determines if the time used for formatting the timestamps in
// backup files is the computer's local time. The default is to use UTC
// time.
LocalTime bool
// compress determines if the rotated log files should be compressed
// using gzip. The default is not to perform compression.
Compress bool
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。