Class: LogStash::Api::Modules::Logging
- Defined in:
- lib/logstash/api/modules/logging.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#handle_logging(settings) ⇒ Object
retrieve logging specific parameters from the provided settings.
Methods inherited from Base
Methods included from Util::Loggable
included, #logger, #slow_logger
Constructor Details
This class inherits a constructor from LogStash::Api::Modules::Base
Instance Method Details
#handle_logging(settings) ⇒ Object
retrieve logging specific parameters from the provided settings
return any unused configurations
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/logstash/api/modules/logging.rb', line 12 def handle_logging(settings) Hash[settings.map do |key, level| if key.start_with?("logger.") _, path = key.split("logger.") LogStash::Logging::Logger::configure_logging(level, path) nil else [key, level] end end] end |