Log4j Version 1.2.14: Class XMLSample

Log4j 1.2

Log4j 1.2.14

org.apache.log4j.xml.examples Class XMLSample

java.lang.Object
  |
  +--org.apache.log4j.xml.examples.XMLSample

public class XMLSample
extends Object

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.

Author:
Ceki Gülcü

 
static void
 
 

XMLSample

public XMLSample()

main

public static void main(String[] argv)

Log4j 1.2.14

Copyright 2000-2005 Apache Software Foundation.