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

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
}