Add custom log file name date format (#4333)

This commit is contained in:
kui
2024-08-27 20:43:25 +08:00
committed by GitHub
parent 29400f6814
commit 075817a8dd
3 changed files with 11 additions and 3 deletions

View File

@@ -42,4 +42,6 @@ type LogConf struct {
// daily: daily rotation.
// size: size limited rotation.
Rotation string `json:",default=daily,options=[daily,size]"`
// FileTimeFormat represents the time format for file name, default is `2006-01-02T15:04:05.000Z07:00`.
FileTimeFormat string `json:",optional"`
}