Index: /home/oglueck/projects/httpclient-3/xdocs/logging.xml =================================================================== --- /home/oglueck/projects/httpclient-3/xdocs/logging.xml (revision 280322) +++ /home/oglueck/projects/httpclient-3/xdocs/logging.xml (working copy) @@ -60,8 +60,10 @@

Because the content of HTTP requests is usually less important for debugging than the HTTP headers, these two types of data have been separated into - different wire logs. The content log is httpclient.wire.content - and the header log is httpclient.wire.header. + different wire logs. The content log is org.apache.commons.httpclient.Wire.content + and the header log is org.apache.commons.httpclient.Wire.header. + As of HttpClient 3.0-RC4 the wire log category names are consistent with the context log + category names!

@@ -87,7 +89,7 @@
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
- System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header", "debug");
+ System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient.Wire.header", "debug");
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");

@@ -96,7 +98,7 @@
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
- System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire", "debug");
+ System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient.Wire", "debug");
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "debug");

@@ -129,8 +131,9 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n

- log4j.logger.httpclient.wire.header=DEBUG
log4j.logger.org.apache.commons.httpclient=DEBUG
+ log4j.logger.org.apache.commons.httpclient.Wire.header=DEBUG
+ log4j.logger.org.apache.commons.httpclient.Wire.content=OFF

@@ -142,8 +145,8 @@ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n

- log4j.logger.httpclient.wire=DEBUG
log4j.logger.org.apache.commons.httpclient=DEBUG
+ log4j.logger.org.apache.commons.httpclient.Wire=DEBUG

@@ -160,8 +163,8 @@ log4j.appender.F.layout=org.apache.log4j.PatternLayout
log4j.appender.F.layout.ConversionPattern =%5p [%c] %m%n

- log4j.logger.httpclient.wire=DEBUG, F
log4j.logger.org.apache.commons.httpclient=DEBUG, stdout
+ log4j.logger.org.apache.commons.httpclient.Wire=DEBUG, F

@@ -174,6 +177,7 @@ log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n

log4j.logger.org.apache.commons.httpclient=DEBUG
+ log4j.logger.org.apache.commons.httpclient.Wire=OFF

Note that the default configuration for Log4J is very @@ -222,7 +226,8 @@ handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

- httpclient.wire.header.level=FINEST
+ org.apache.commons.httpclient.Wire.header.level=FINEST
+ org.apache.commons.httpclient.Wire.content.level=OFF
org.apache.commons.httpclient.level=FINEST

@@ -234,7 +239,7 @@ handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

- httpclient.wire.level=FINEST
+ org.apache.commons.httpclient.Wire.level=FINEST
org.apache.commons.httpclient.level=FINEST

@@ -247,6 +252,7 @@ java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.apache.commons.httpclient.level=FINEST
+ org.apache.commons.httpclient.Wire=OFF

Index: /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/Wire.java =================================================================== --- /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/Wire.java (revision 280322) +++ /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/Wire.java (working copy) @@ -44,9 +44,9 @@ */ class Wire { - public static Wire HEADER_WIRE = new Wire(LogFactory.getLog("httpclient.wire.header")); + public static Wire HEADER_WIRE = new Wire(LogFactory.getLog("org.apache.commons.httpclient.Wire.header")); - public static Wire CONTENT_WIRE = new Wire(LogFactory.getLog("httpclient.wire.content")); + public static Wire CONTENT_WIRE = new Wire(LogFactory.getLog("org.apache.commons.httpclient.Wire.content")); /** Log for any wire messages. */ private Log log;