summaryrefslogtreecommitdiff
path: root/plugins/logger/interface.go
blob: 827f9821af5fa11c8aec8534e5681fca249db1dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package logger

// Logger is an general RR log interface
type Logger interface {
	Debug(msg string, keyvals ...interface{})
	Info(msg string, keyvals ...interface{})
	Warn(msg string, keyvals ...interface{})
	Error(msg string, keyvals ...interface{})
}

// WithLogger creates a child logger and adds structured context to it
type WithLogger interface {
	With(keyvals ...interface{}) Logger
}