Class Log4r::Configurator
In: lib/log4r/configurator.rb
Parent: Object

See log4r/configurator.rb

Methods

Included Modules

REXML

Constants

ExcludeParams = %w{formatter level name type}

Public Class methods

Get a parameter‘s value

Define a parameter with a value

Sets the custom levels. This method accepts symbols or strings.

  Configurator.custom_levels('My', 'Custom', :Levels)

Alternatively, you can specify custom levels in XML:

  <log4r_config>
    <pre_config>
      <custom_levels>
        My, Custom, Levels
      </custom_levels>
      ...

Given a filename, loads the XML configuration for Log4r.

You can load a String XML configuration instead of a file.

[Validate]