2020-04-27 21:26:13 +08:00
|
|
|
package grlogs
|
|
|
|
|
2020-04-28 10:37:47 +08:00
|
|
|
type Level int
|
|
|
|
|
|
|
|
type Adapter string
|
|
|
|
|
2020-04-27 21:26:13 +08:00
|
|
|
const (
|
2020-04-28 10:37:47 +08:00
|
|
|
_ 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
|
2020-04-27 21:26:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-04-28 10:37:47 +08:00
|
|
|
AdapterFile Adapter = "file"
|
|
|
|
AdapterConsole Adapter = "console"
|
|
|
|
AdapterSocket Adapter = "socket"
|
|
|
|
AdapterElasticSearch Adapter = "es"
|
2020-05-04 21:10:20 +08:00
|
|
|
AdapterAliLs Adapter = "alils"
|
2020-04-27 21:26:13 +08:00
|
|
|
)
|
2020-05-07 10:59:16 +08:00
|
|
|
|
|
|
|
const (
|
|
|
|
DEV = "dev"
|
|
|
|
GRAY = "gray"
|
|
|
|
PROD = "prod"
|
|
|
|
)
|