summaryrefslogtreecommitdiff
path: root/plugins/logger/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-18 17:31:52 +0300
committerValery Piashchynski <[email protected]>2021-04-18 17:31:52 +0300
commit4e6dfc00c5619c4e749602d345fd2829ab0a3f07 (patch)
tree12b4ce7644b02b6e76cfa46e8c80d54690d6e0dc /plugins/logger/plugin.go
parent15b7a9a0fc074531f9b46bb87fb35819e248a58c (diff)
- Draft implementation of the service plugin
Diffstat (limited to 'plugins/logger/plugin.go')
-rw-r--r--plugins/logger/plugin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go
index 08fc2454..e1066cba 100644
--- a/plugins/logger/plugin.go
+++ b/plugins/logger/plugin.go
@@ -69,7 +69,7 @@ func (z *ZapLogger) NamedLogger(name string) (Logger, error) {
return NewZapAdapter(z.base.Named(name)), nil
}
-// NamedLogger returns logger dedicated to the specific channel. Similar to Named() but also reads the core params.
+// ServiceLogger returns logger dedicated to the specific channel. Similar to Named() but also reads the core params.
func (z *ZapLogger) ServiceLogger(n endure.Named) (Logger, error) {
return z.NamedLogger(n.Name())
}
@@ -78,5 +78,6 @@ func (z *ZapLogger) ServiceLogger(n endure.Named) (Logger, error) {
func (z *ZapLogger) Provides() []interface{} {
return []interface{}{
z.ServiceLogger,
+ z.DefaultLogger,
}
}