summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-29 21:37:10 +0300
committerValery Piashchynski <[email protected]>2021-04-29 22:45:19 +0300
commita0c6d96d0d767a6fb77c0a5cce7dc9c312ab89c7 (patch)
tree5501c1a0e5af13c8e15514de41638c0f38a5b1d1
parent92d089e0ecedaa1ccdf9e2700b9cb2b61f307b1d (diff)
- Remove redundand logger implementation
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--plugins/logger/plugin.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go
index e1066cba..9965b29c 100644
--- a/plugins/logger/plugin.go
+++ b/plugins/logger/plugin.go
@@ -51,11 +51,6 @@ func (z *ZapLogger) Init(cfg config.Configurer) error {
return nil
}
-// DefaultLogger returns default logger.
-func (z *ZapLogger) DefaultLogger() (Logger, error) {
- return NewZapAdapter(z.base), nil
-}
-
// NamedLogger returns logger dedicated to the specific channel. Similar to Named() but also reads the core params.
func (z *ZapLogger) NamedLogger(name string) (Logger, error) {
if cfg, ok := z.channels.Channels[name]; ok {
@@ -78,6 +73,5 @@ func (z *ZapLogger) ServiceLogger(n endure.Named) (Logger, error) {
func (z *ZapLogger) Provides() []interface{} {
return []interface{}{
z.ServiceLogger,
- z.DefaultLogger,
}
}