Friday, March 12, 2010

Logging in Log4j

Locate the log4j.cfg file ...


log4j.rootLogger=INFO, stdout, F
... etc ...
log4j.logger.org.apache.commons=info
log4j.logger.org.apache.axis2=info
log4j.logger.org.apache.axiom=info
#log4j.logger.org.apache.commons.httpclient=debug
#log4j.logger.httpclient.wire=debug
#log4j.logger.httpclient.wire.header=debug


So when you want to see the logging you can remove the "#" as required.

Some relevant links are here ...
"http://hc.apache.org/httpclient-3.x/logging.html"
"http://logging.apache.org/log4j/1.2/manual.html"

No comments: