Package org.apache.log4j.xml.examples

Example usage of log4j with XML (including source code).

Class Summary

ReportParserErrorThis class is needed for validating a log4j.dtd derived XML file.
XMLSampleThis example code shows how to read an XML based configuration file using a DOM parser.
Example usage of log4j with XML (including source code).

This package's shows how log4j can be used with an XML configuration file.

See source code of XMLSample.java showing how to configure with an XML file. Sample XML files sample1.xml, sample2.xml, sample3.xml, sample4.xml, sample5.xml are provided.


<!-- hhmts start --> Last modified: Wed Apr 12 22:27:25 MDT 2000 <!-- hhmts end -->

Copyright 2000-2005 Apache Software Foundation.