enhanced the logger with file logging and rotation

This commit is contained in:
2024-12-15 15:07:35 +09:00
parent bc9a40106c
commit 8cab165cc4
7 changed files with 216 additions and 87 deletions

View File

@ -28,6 +28,8 @@ var IPV6_PREFIX_ZERO = netip.MustParsePrefix("::/0")
type Logger interface {
Write(id string, level LogLevel, fmtstr string, args ...interface{})
WriteWithCallDepth(id string, level LogLevel, call_depth int, fmtstr string, args ...interface{})
Rotate()
}
type Service interface {