Your configuration looks correct. You could run with -Dlog4j.debug to verify that is is being used.
On 5/23/07, ben short <[EMAIL PROTECTED]> wrote:
Hi, I have an application that uses the apache HTTPClient. With my applications logging 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 to be ignored and i see the following in my log file. I also have a logger setup for the spring framework which works fine. Can anyone see what if doing wrong? I'm 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> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- James Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]