grlogs/options.go
2020-05-07 10:59:16 +08:00

32 lines
580 B
Go

package grlogs
type Level int
type Adapter string
const (
_ Level = iota
LevelNone Level = iota
LevelCritical Level = iota
LevelError Level = iota
LevelWarning Level = iota
LevelWarn Level = iota
LevelInfo Level = iota
LevelDebug Level = iota
LevelAll Level = iota
)
const (
AdapterFile Adapter = "file"
AdapterConsole Adapter = "console"
AdapterSocket Adapter = "socket"
AdapterElasticSearch Adapter = "es"
AdapterAliLs Adapter = "alils"
)
const (
DEV = "dev"
GRAY = "gray"
PROD = "prod"
)