Hello,

I followed the instructions in package.html in the HTTP Client's log package, but I 
cannot get HTTP Client logging to work.
I do have log4j and am using it in the rest of the application (configuration for that 
is in the same properties file, but I'm not including it here).
log4j.jar is in my CLASSPATH.

This is the relevant portion of my properties file (derived from 
log4j.properties.sample that's distribute with HTTP Client):

logRoot=/tmp/log
log4j.rootCategory=DEBUG


###################################################
# Sample configuration for the log4j logging system
###################################################

# Set the appenders
client.Base64=DEBUG
log4j.category.org.apache.commons.httpclient.HttpClient=DEBUG, HTTPCLIENTLOG
log4j.category.org.apache.commons.httpclient.methods=DEBUG, HTTPCLIENTLOG

# Console appender
#log4j.appender.HTTPCLIENTLOG=org.apache.log4j.FileAppender

# ROLLING file appender
log4j.appender.HTTPCLIENTLOG=org.apache.log4j.RollingFileAppender
# set the max log size
log4j.appender.HTTPCLIENTLOG.MaxFileSize=100MB
# keep a few backup files
log4j.appender.HTTPCLIENTLOG.MaxBackupIndex=2

log4j.appender.HTTPCLIENTLOG.File=${logRoot}/httpclient.log
log4j.appender.HTTPCLIENTLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.HTTPCLIENTLOG.layout.ConversionPattern=%-5p [%t] %c - %m: %d{DATE}\n


My application does log stuff (configured exactly the same way), but HTTP Client does 
not.
Maybe it is just not seeing Log4j's Category?

Does anyone have this working?
Can you send your log4j config?

Thanks,
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to