Class: R10K::Initializers::LoggingInitializer

Inherits:
BaseInitializer show all
Defined in:
lib/r10k/initializers.rb

Constant Summary

Constants included from Logging

Logging::LOG_LEVELS, Logging::SYSLOG_LEVELS_MAP

Instance Method Summary collapse

Methods inherited from BaseInitializer

#initialize

Methods included from Logging

add_outputters, debug_formatter, default_formatter, default_outputter, #logger, #logger_name, parse_level

Constructor Details

This class inherits a constructor from R10K::Initializers::BaseInitializer

Instance Method Details

#callObject



51
52
53
54
55
# File 'lib/r10k/initializers.rb', line 51

def call
  with_setting(:level) { |value| R10K::Logging.level = value }
  with_setting(:disable_default_stderr) { |value| R10K::Logging.disable_default_stderr = value }
  with_setting(:outputs) { |value| R10K::Logging.add_outputters(value) }
end