feat: stdout access logger and MultiWriter

This commit is contained in:
yusing
2025-04-14 07:15:15 +08:00
parent dc1102905b
commit 82e2705f44
13 changed files with 145 additions and 30 deletions

View File

@@ -56,7 +56,7 @@ func fmtLog(cfg *Config) (ts string, line string) {
var buf bytes.Buffer
t := time.Now()
logger := NewAccessLogger(testTask, nil, cfg)
logger := NewMockAccessLogger(testTask, cfg)
logger.Formatter.SetGetTimeNow(func() time.Time {
return t
})