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

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

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