日志切割,默认切割按照小时维度切
This commit is contained in:
parent
5d0428059a
commit
e655c031b2
@ -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: "",
|
||||
|
Loading…
Reference in New Issue
Block a user