37 lines
643 B
Go
37 lines
643 B
Go
package grlogs
|
|
|
|
type Level int
|
|
|
|
type Adapter string
|
|
|
|
type AdapterTupple struct {
|
|
Level Level
|
|
Adapter Adapter
|
|
}
|
|
|
|
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"
|
|
)
|