Module: LogStash::PluginMixins::DeprecationLoggerSupport::LegacyInitAdapter
- Defined in:
- lib/logstash/plugin_mixins/deprecation_logger_support/legacy_init_adapter.rb
Overview
The ‘LegacyInitAdapter` is used to hook into the initialization of Logstash Plugins to ensure that a `@deprecation_logger` instance variable is initialized.
Instance Method Summary collapse
Instance Method Details
#initialize(*args) ⇒ Object
17 18 19 20 21 |
# File 'lib/logstash/plugin_mixins/deprecation_logger_support/legacy_init_adapter.rb', line 17 def initialize(*args) super if defined?(super) @deprecation_logger ||= self.deprecation_logger end |