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

@@ -294,6 +294,10 @@ func SetUp(c LogConf) (err error) {
timeFormat = c.TimeFormat
}
if len(c.FileTimeFormat) > 0 {
fileTimeFormat = c.FileTimeFormat
}
atomic.StoreUint32(&maxContentLength, c.MaxContentLength)
switch c.Encoding {