mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 04:34:23 -06:00
16db1ad46d
Fixes #47006
25 lines
515 B
Go
25 lines
515 B
Go
package log
|
|
|
|
type Lvl int
|
|
|
|
const (
|
|
LvlCrit Lvl = iota
|
|
LvlError
|
|
LvlWarn
|
|
LvlInfo
|
|
LvlDebug
|
|
)
|
|
|
|
type Logger interface {
|
|
// New returns a new contextual Logger that has this logger's context plus the given context.
|
|
New(ctx ...interface{}) *ConcreteLogger
|
|
|
|
Log(keyvals ...interface{}) error
|
|
|
|
// Log a message at the given level with context key/value pairs
|
|
Debug(msg string, ctx ...interface{})
|
|
Info(msg string, ctx ...interface{})
|
|
Warn(msg string, ctx ...interface{})
|
|
Error(msg string, ctx ...interface{})
|
|
}
|