You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by chuanjiang lo <lo...@gmail.com> on 2006/07/06 16:54:06 UTC
Using XML configurations
Hi all,
There is no problem using the properties file now I'm using a XML file for
configuring the properties.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<root>
<priority value="debug"/>
<appender-ref ref="A1"/>
</root>
<appender name="A1" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd MMM yyyy
HH:mm:ss} [%t] %-5p %c - %m%n"/>
</layout>
</appender>
</log4j:configuration>
However it is giving me error when im running my program.
Error output:
javax.xml.parsers.FactoryConfigurationError: Provider org
jaxp.DocumentBuilderFactoryImpl not found
and more....
Using JDK 1.5
Appreciate any help.