# File lib/logging/config/yaml_configurator.rb, line 82 def pre_config( config ) # if no pre_config section was given, just create an empty hash # we do this to ensure that some logging levels are always defined config ||= Hash.new # define levels levels = config['define_levels'] ::Logging.init(levels) unless levels.nil? # format as format = config['format_as'] ::Logging.format_as(format) unless format.nil? # backtrace value = config['backtrace'] ::Logging.backtrace(value) unless value.nil? # grab the root logger and set the logging level root = ::Logging::Logger.root if config.has_key?('root') root.level = config['root']['level'] end end