From 19428c3dbe4ab13c11a227ad03a14e138015f8ce Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 30 Jan 2023 15:49:11 +0100 Subject: [PATCH] feat: logger interface (#14829) --- core/log/logger.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 core/log/logger.go diff --git a/core/log/logger.go b/core/log/logger.go new file mode 100644 index 0000000000..a986a01fa7 --- /dev/null +++ b/core/log/logger.go @@ -0,0 +1,10 @@ +package log + +// Service is the interface that wraps the basic logging methods. +type Service interface { + Debug(msg string, keyvals ...interface{}) + Info(msg string, keyvals ...interface{}) + Error(msg string, keyvals ...interface{}) + + With(keyvals ...interface{}) Service +}