32 lines
580 B
Go
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"
|
|
)
|