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']
      ::Logsly::Logging182.init(levels) unless levels.nil?

      # format as
      format = config['format_as']
      ::Logsly::Logging182.format_as(format) unless format.nil?

      # backtrace
      value = config['backtrace']
      ::Logsly::Logging182.backtrace(value) unless value.nil?

      # grab the root logger and set the logging level
      root = ::Logsly::Logging182::Logger.root
      if config.has_key?('root')
        root.level = config['root']['level']
      end
    end
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']
      ::Logsly::Logging182.init(levels) unless levels.nil?

      # format as
      format = config['format_as']
      ::Logsly::Logging182.format_as(format) unless format.nil?

      # backtrace
      value = config['backtrace']
      ::Logsly::Logging182.backtrace(value) unless value.nil?

      # grab the root logger and set the logging level
      root = ::Logsly::Logging182::Logger.root
      if config.has_key?('root')
        root.level = config['root']['level']
      end
    end
call-seq:
    pre_config( config )

 Configures the logging levels, object format style, and root logging
 level.