logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <...@benshort.co.uk>
Subject Logger level being ignored
Date Wed, 23 May 2007 09:24:11 GMT

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

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">

    <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" />

    <logger name="org.springframework" ><level value="WARN"/></logger>

    <logger name="org.apache.commons.httpclient" ><level value="WARN"/></logger>

    <!--                           -->
    <!-- setup log4j's root logger -->
    <!--                           -->
        <level value="all" />
        <appender-ref ref="FILE"/>

View raw message