summaryrefslogtreecommitdiff
path: root/plugins/logger
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-04 15:32:55 +0300
committerValery Piashchynski <[email protected]>2020-11-04 15:32:55 +0300
commite0a0c0d31cf9724754c63c67865403af7fceb1a4 (patch)
tree3c7fcde78a280d8058c38816931c8b15d1779c8e /plugins/logger
parentedc45b3e24afdb5e56e74ffbbbd50e0e3b04922b (diff)
Update structure, add tests for RPC
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