Since they are all based on the same components, take a look at http://hc.apache.org/httpclient-3.x/logging.html or http://hc.apache.org/httpclient-3.x/troubleshooting.html

 

Hth,

Greg.

 

 

 

From: jython-users-bounces@lists.sourceforge.net [mailto:jython-users-bounces@lists.sourceforge.net] On Behalf Of DOUTCH GARETH-GDO003
Sent: Monday, July 07, 2008 6:25 AM
To: jython-users@lists.sourceforge.net
Subject: [Jython-users] Hide unwanted commons logging trace?

 

Hi all,

 

I am using htmlunit as part of my project and I want to disable the log messages it prints to my command line whenever I load a web page (usually ones with Javascript are the most verbose).

 

The example:

 

from com.gargoylesoftware.htmlunit import *

w = WebClient(BrowserVersion.FIREFOX_2)
w.getPage('http://maps.google.com')

 

Generates the output:

07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=1
07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: testcookie=
07-Jul-2008 14:18:44 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie
INFO: Added cookie: khcookie=fzwq2gh2pz1eDnO5bRamCTbugf_q4fmi-ww4Hg
Exception in declaration()
HtmlPage(http://maps.google.com)@5602395

 

The project uses the commons logging package, and I haven't a clue how to disable the output. Can anybody help?


http://htmlunit.sourceforge.net/

 

Regards,

 

Gareth

 


This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.