Class: Log4r::Configurator

Class Log4r::Configurator |
In: | /home/cepheus/projects/prep/log4r-1.0.1/src/log4r/configurator.rb
Parent: | Object

See log4r/configurator.rb

Methods

[] []= custom_levels load_xml_file load_xml_string

Included modules

REXML

Public Class methods

[](param)

Get a parameter's value

[]=(param, value)

Define a parameter with a value

custom_levels(*levels)

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

load_xml_file(filename)

Given a filename, loads the XML configuration for Log4r.

load_xml_string(string)

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