You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@logging.apache.org by ben short <be...@benshort.co.uk> on 2007/05/23 11:24:11 UTC
Logger level being ignored
Hi,
I have an application that uses the apache HTTPClient. With my
applications loggin setup in debug mode the HTTPClient spits out lots
of info to the log file. I have setup a logger as shown in the
following log4j.xml, But it seems tobe ignored and i see the following
in my logfile. I also have a logger setup for the spring framework
which works fine. Can anyone see what if doing wronge? Im using log4j
1.2.14.
10:23:11,714 DEBUG org.apache.commons.httpclient.Wire:69 - << "</div>[\r][\n]"
10:23:11,717 DEBUG org.apache.commons.httpclient.Wire:69 - << "[\r][\n]"
10:23:11,720 DEBUG org.apache.commons.httpclient.Wire:69 - << "<!--
SiteCatalyst code version: H.6.[\r][\n]"
10:23:11,724 DEBUG org.apache.commons.httpclient.Wire:69 - <<
"Copyright 1997-2006 Omniture, Inc. More info available at[\r][\n]"
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration>
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="maxFileSize" value="128MB" />
<param name="maxBackupIndex" value="5" />
<param name="File" value="${catalina.home}/logs/jc_core.log" />
<param name="threshold" value="DEBUG"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %5p %C:%L - %m%n" />
</layout>
</appender>
<logger name="org.springframework" ><level value="WARN"/></logger>
<logger name="org.apache.commons.httpclient" ><level value="WARN"/></logger>
<!-- -->
<!-- setup log4j's root logger -->
<!-- -->
<root>
<level value="all" />
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>