summaryrefslogtreecommitdiff
path: root/plugins/logger
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/logger')
-rw-r--r--plugins/logger/tests/.rr.yaml0
-rw-r--r--plugins/logger/tests/logger_test.go1
-rw-r--r--plugins/logger/tests/plugin1.go1
-rw-r--r--plugins/logger/tests/plugin2.go1
-rw-r--r--plugins/logger/zap_logger.go2
5 files changed, 4 insertions, 1 deletions
diff --git a/plugins/logger/tests/.rr.yaml b/plugins/logger/tests/.rr.yaml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/plugins/logger/tests/.rr.yaml
diff --git a/plugins/logger/tests/logger_test.go b/plugins/logger/tests/logger_test.go
new file mode 100644
index 00000000..ca8701d2
--- /dev/null
+++ b/plugins/logger/tests/logger_test.go
@@ -0,0 +1 @@
+package tests
diff --git a/plugins/logger/tests/plugin1.go b/plugins/logger/tests/plugin1.go
new file mode 100644
index 00000000..ca8701d2
--- /dev/null
+++ b/plugins/logger/tests/plugin1.go
@@ -0,0 +1 @@
+package tests
diff --git a/plugins/logger/tests/plugin2.go b/plugins/logger/tests/plugin2.go
new file mode 100644
index 00000000..ca8701d2
--- /dev/null
+++ b/plugins/logger/tests/plugin2.go
@@ -0,0 +1 @@
+package tests
diff --git a/plugins/logger/zap_logger.go b/plugins/logger/zap_logger.go
index 8c1739f2..a22cdb22 100644
--- a/plugins/logger/zap_logger.go
+++ b/plugins/logger/zap_logger.go
@@ -25,7 +25,7 @@ type ZapLogger struct {
}
// Init logger service.
-func (z *ZapLogger) Init(cfg config.Provider) (err error) {
+func (z *ZapLogger) Init(cfg config.Configurer) (err error) {
err = cfg.UnmarshalKey(ServiceName, &z.cfg)
if err != nil {
return err