mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-25 01:31:06 +08:00
21 lines
348 B
Go
21 lines
348 B
Go
package log
|
|
|
|
type LogLevel uint8
|
|
|
|
const (
|
|
DEBUG LogLevel = iota
|
|
INFO
|
|
WARN
|
|
ERROR
|
|
NONE
|
|
)
|
|
|
|
type Logger interface {
|
|
SetLevel(level LogLevel)
|
|
Debugf(msg string, args ...interface{})
|
|
Infof(msg string, args ...interface{})
|
|
Warnf(msg string, args ...interface{})
|
|
Errorf(msg string, args ...interface{})
|
|
Fatalf(msg string, args ...interface{})
|
|
}
|