diff options
author | Valery Piashchynski <[email protected]> | 2020-11-05 15:45:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-05 15:45:18 +0300 |
commit | bca69d968ef76a6260956bc169cb07996fbb7724 (patch) | |
tree | bcca677f40d0dd19da5095bfe8dc5c6bacf64566 /log/interface.go | |
parent | 3a0a0190ed130e72ebc150bbb3e3c1582f22dd16 (diff) |
App test
Diffstat (limited to 'log/interface.go')
-rw-r--r-- | log/interface.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/log/interface.go b/log/interface.go new file mode 100644 index 00000000..e2f2ce31 --- /dev/null +++ b/log/interface.go @@ -0,0 +1,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 +} |