Files
tun2socks/common/log/logger.go
2019-07-16 11:37:52 +08:00

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{})
}