Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » xml » examples » [javadoc | source]
org.apache.log4j.xml.examples
public class: XMLSample [javadoc | source]
java.lang.Object
   org.apache.log4j.xml.examples.XMLSample
This example code shows how to read an XML based configuration file using a DOM parser.

Sample XML files sample1.xml and sample2.xml are provided.

Note that the log4j.dtd is not in the local directory. It is found by the class loader.

Field Summary
static  Logger cat     
Method from org.apache.log4j.xml.examples.XMLSample Summary:
Usage,   init,   main,   sample
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.xml.examples.XMLSample Detail:
 static  void Usage(String msg) 
 static  void init(String configFile) 
 public static  void main(String[] argv) 
 static  void sample()