Hello, I did finally work it out - so for the benefit of future googlers ...
The following were needed in the log4j.cfg file ... <snip> 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 </snip> So when we 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" Cheers, -Damian On Fri, Mar 12, 2010 at 12:43 PM, Damian Carey <[email protected]> wrote: > Hello, > > We've (finally!) connected our client to a SOAP server for the first > time and we are getting thousands of lines of logging similar to ... > > 2010-03-12 12:01:35,146 [68607 ][pool-6-thread-1] DEBUG Wire wire: >> > "[\r][\n]" > 2010-03-12 12:01:35,668 [69129 ][pool-6-thread-1] DEBUG Wire wire: << "2" > 2010-03-12 12:01:35,670 [69131 ][pool-6-thread-1] DEBUG Wire wire: << "0" > > I have been trying to adjust the logging via the log4j.cfg files as I > normally would, but I do not know what adjusts these "wire" debug > lines. > > I have added ... > log4j.logger.org.apache.commons=warn > log4j.logger.org.apache.axis2=info > log4j.logger.org.apache.axiom=info > > I am guessing that the lines comes from httpclient, and I thought that > "log4j.logger.org.apache.commons=warn" would stop that. (I clearly > did not guess very well) > > Can anyone suggest > (1) the appropriate log4j switch to control the "wire" debug, or > (2) any other method for doing it. > > > Any help / guidance / suggestions would be most appreciated. > > Thanks, > -Damian > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
