diff options
author | Valery Piashchynski <[email protected]> | 2021-04-30 13:09:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-30 13:09:18 +0300 |
commit | d0dccb0c761df45da7fba00340f1cd5c66c71711 (patch) | |
tree | 8b1bc547a843dd9601faee26cf1c92876cfbb054 /plugins/logger | |
parent | 50aa751dcefc0ab0e96594a5f111ead316a34a70 (diff) |
- Add Availabler interface implementaion for all plugins
- Add tests
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/logger')
-rw-r--r-- | plugins/logger/plugin.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/logger/plugin.go b/plugins/logger/plugin.go index e1066cba..86275a85 100644 --- a/plugins/logger/plugin.go +++ b/plugins/logger/plugin.go @@ -81,3 +81,13 @@ func (z *ZapLogger) Provides() []interface{} { z.DefaultLogger, } } + +// Name returns user-friendly plugin name +func (z *ZapLogger) Name() string { + return PluginName +} + +// Available interface implementation +func (z *ZapLogger) Available() bool { + return true +} |