Class DOMConfigurator

java.lang.Object
org.apache.log4j.xml.DOMConfigurator

public class DOMConfigurator extends Object
Use this class to initialize the log4j environment using a DOM tree.

The DTD is specified in log4j.dtd.

Sometimes it is useful to see how log4j is reading configuration files. You can enable log4j internal logging by defining the log4j.debug variable on the java command line. Alternatively, set the debug attribute in the log4j:configuration element. As in

<log4j:configuration debug="true" xmlns:log4j="http://jakarta.apache.org/log4j/">
...
</log4j:configuration>
 

There are sample XML files included in the package.

Since:
0.8.3