Hide unwanted commons logging trace?

View: New views
2 Messages — Rating Filter:   Alert me  

Hide unwanted commons logging trace?

by DOUTCH GARETH-GDO003 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?
 
Regards,
 
Gareth
 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users

Re: Hide unwanted commons logging trace?

by Moore, Greg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@... [mailto:jython-users-bounces@...] On Behalf Of DOUTCH GARETH-GDO003
Sent: Monday, July 07, 2008 6:25 AM
To: jython-users@...
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?

 

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.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users
LightInTheBox - Buy quality products at wholesale price