github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/logger/logger.go (about) 1 package logger 2 3 import "context" 4 5 type Logger interface { 6 Trace(args ...any) 7 Debug(args ...any) 8 Info(args ...any) 9 Warn(args ...any) 10 Error(args ...any) 11 Fatal(args ...any) 12 Panic(args ...any) 13 } 14 15 type ContextLogger interface { 16 Logger 17 TraceContext(ctx context.Context, args ...any) 18 DebugContext(ctx context.Context, args ...any) 19 InfoContext(ctx context.Context, args ...any) 20 WarnContext(ctx context.Context, args ...any) 21 ErrorContext(ctx context.Context, args ...any) 22 FatalContext(ctx context.Context, args ...any) 23 PanicContext(ctx context.Context, args ...any) 24 }