Skip to content

Commit

Permalink
feat: logx support logs rotation based on size limitation. (#1652)
Browse files Browse the repository at this point in the history
implementation of #1652

Totally compatible with the old logx.LogConf. No effect if users do not change their options.
  • Loading branch information
SgtDaJim committed Jul 19, 2022
1 parent 31087d8 commit 1b9245b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/logx/rotatelogger.go
Expand Up @@ -434,7 +434,7 @@ func getNowDate() string {
}

func getNowDateInRFC3339Format() string {
return time.Now().Add((-24*60 + 5) * time.Minute).Format(rfc3339DateFormat)
return time.Now().Format(rfc3339DateFormat)
}

func gzipFile(file string) error {
Expand Down

0 comments on commit 1b9245b

Please sign in to comment.