日志切割,默认切割按照小时维度切

This commit is contained in:
zhangdeman committed 2021-03-04 23:25:45 +08:00
1 parent 5d0428059a
commit e655c031b2
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ func NewRotateLogConfig(logPath string, logFile string, option ...SetRotateLogCo
return nil, LogPathEmptyError()
}
c := &RotateLogConfig{
TimeIntervalType: 0,
TimeIntervalType: TimeIntervalTypeHour,
LogPath: logPath,
LogFileName: logFile,
DivisionChar: "",
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.