From bca69d968ef76a6260956bc169cb07996fbb7724 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 5 Nov 2020 15:45:18 +0300 Subject: App test --- log/interface.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 log/interface.go (limited to 'log/interface.go') 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 +} -- cgit v1.2.3