proxy-detector/log/level.go

26 lines
325 B
Go
Raw Permalink Normal View History

package log
import (
log "github.com/sirupsen/logrus"
)
type LogLevel int
const (
TRACE LogLevel = iota
DEBUG
INFO
WARNING
ERROR
)
var (
levelMapping = map[LogLevel]log.Level{
TRACE: log.TraceLevel,
DEBUG: log.DebugLevel,
INFO: log.InfoLevel,
WARNING: log.WarnLevel,
ERROR: log.ErrorLevel,
}
)