diff --git a/logger/config.go b/logger/config.go index 899fba9..2d32d13 100644 --- a/logger/config.go +++ b/logger/config.go @@ -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: "",