Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

PropertyConfigurator Class Reference

List of all members.

Static Public Member Functions

 this ()
void configure (char[] filepath)

Private Attributes

import mango io Properties

Static Private Attributes

Logger Level[char[]] map

Detailed Description

A utility class for initializing the basic behaviour of the default logging hierarchy.

PropertyConfigurator parses a much simplified version of the property file. Mango.log only supports the settings of Logger levels at this time; setup of Appenders and Layouts are currently done "in the code", though this should not be a major hardship.

Definition at line 96 of file Configurator.d.


Member Function Documentation

this  )  [inline, static]
 

Populate a map of acceptable level names

Definition at line 108 of file Configurator.d.

References ILevel::Level.

void configure char[]  filepath  )  [inline, static]
 

Add a default StdioAppender, with a SimpleTimerLayout, to the root node. The activity levels of all nodes are set via a property file with name=value pairs specified that follow this format:

name: the actual logger name, in dot notation format. The name "root" is reserved to match the root logger node.

value: one of TRACE, INFO, WARN, ERROR, FATAL or NONE (or the lowercase equivalents).

For example, the declaration

mango.unittest=INFO

sets the level of the logger called "mango.unittest".

Definition at line 145 of file Configurator.d.

References Logger::getLogger(), Logger::getRootLogger(), and Logger::setLevel().


Member Data Documentation

import mango io Properties [private]
 

Definition at line 98 of file Configurator.d.

Logger Level [char[]] map [static, private]
 

Definition at line 100 of file Configurator.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:09 2004 for Mango by doxygen 1.3.6