Google

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

Methods

[], [], [], [], [],
Included modules

REXML
Public Class methods
[](param) src

Get a parameter's value

[]=(param, value) src

Define a parameter with a value

custom_levels(*levels) src

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>
      ...
src

Given a filename, loads the XML configuration for Log4r.

src

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