summaryrefslogtreecommitdiff
path: root/plugins/logger/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-13 21:06:20 +0300
committerValery Piashchynski <[email protected]>2021-03-13 21:06:20 +0300
commit594d801d14bb394b20eec14690d1b616e2c4d56d (patch)
tree7643d6e74c69f078e704730a8217f3204654060d /plugins/logger/interface.go
parentd3e3fba7ce313b9e9563cca35ebd6432a0fba6e4 (diff)
- Add ability to print http/https/fcgi to the rr logger under the Info
level - Update tests and CHANGELOG Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/logger/interface.go')
-rw-r--r--plugins/logger/interface.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/logger/interface.go b/plugins/logger/interface.go
index 876629a9..5bb2143b 100644
--- a/plugins/logger/interface.go
+++ b/plugins/logger/interface.go
@@ -1,14 +1,12 @@
package logger
-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{})
- }
-)
+// 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 {