blob: 5bb2143be25a4be03c3c8a5cdbdbd9889e8e7cb5 (
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{})
}
// With creates a child logger and adds structured context to it
type WithLogger interface {
With(keyvals ...interface{}) Logger
}
|