fix(accesslog): os: invalid use of WriteAt on file opened with O_APPEND

This commit is contained in:
yusing
2025-04-29 00:46:30 +08:00
parent ce4bf2f646
commit bca3cd84d1
3 changed files with 58 additions and 10 deletions

View File

@@ -43,6 +43,12 @@ type (
Name() string // file name or path
}
SupportRotate interface {
io.Writer
supportRotate
Name() string
}
RequestFormatter interface {
// AppendRequestLog appends a log line to line with or without a trailing newline
AppendRequestLog(line []byte, req *http.Request, res *http.Response) []byte