tango.util.log.ConfigProps

License:

BSD style: see license.txt

Version:

Nov 2005: split from Configurator.d

verison:

Feb 2007: removed default console configuration

Author:

Kris
struct ConfigProps
A utility class for initializing the basic behaviour of the default logging hierarchy.
ConfigProps parses a much simplified version of the property file. Tango.log only supports the settings of Logger levels at this time, and setup of Appenders and Layouts are currently done "in the code"
void opCall(char[] path) [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 in the following 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

1
2
tango.unittest = INFO
myApp.SocketActivity = TRACE
sets the level of the loggers called tango.unittest and myApp.SocketActivity