From: Arun G. <aru...@gm...> - 2013-12-14 07:38:51
|
I included the following log4j.properties: log4j.rootLogger=DEBUG, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender 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 in WEB-INF/classes. Also tried setting the properties: 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", "debug"); But still don't see any HTTP headers on the console. Seems like I'm missing something trivial ? Arun On Fri, Dec 13, 2013 at 5:30 PM, Ahmed Ashour <asa...@ya...> wrote: > Hi Arun, > > - http://htmlunit.sourceforge.net/logging.html > - > https://sourceforge.net/p/htmlunit/code/HEAD/tree/trunk/htmlunit/src/test/resources/log4j.properties > > Ahmed > ________________________________ > From: Arun Gupta <aru...@gm...> > To: htm...@li... > Sent: Saturday, December 14, 2013 4:09 AM > Subject: [Htmlunit-user] Logging http messages > > Other than using wireshark, is there a programmatic way (such as an > API on WebClient or some other means) to generate HTTP dump of > messages being exchanged ? > > Arun > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > -- http://blog.arungupta.me http://twitter.com/arungupta |