[HtmlUnit] [htmlunit:bugs] #254 Disable HtmlUnit logging
RBRi via HtmlUnit-develop <[email protected]> Tue, 24 Jul 2018 16:33:54 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/feature-requests/254/4e806f8012f8e337380f9efec085e44539fd5256.bugs@htmlunit.p.sourceforge.net> |
Have you solved this?
---
** [feature-requests:#254] Disable HtmlUnit logging**
**Status:** pending
**Group:** 2.19
**Created:** Thu Jun 14, 2018 04:35 AM UTC by Ganesh Prakash Barshile
**Last Updated:** Sat Jun 30, 2018 12:40 PM UTC
**Owner:** RBRi
**Attachments:**
- [Logger.png](https://sourceforge.net/p/htmlunit/feature-requests/254/attachment/Logger.png) (132.4 kB; image/png)
We want to disable all logs of htmlunit unit. We tried it using log4j & commons logging but unable to do it.
We tried following code:-
Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter").setLevel(Level.OFF);
Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject").setLevel(Level.OFF);Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument").setLevel(Level.OFF);
Logger.getLogger("com.gargoylesoftware.htmlunit.html.HtmlScript").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.WindowProxy").setLevel(Level.OFF);
Logger.getLogger("org.apache").setLevel(Level.OFF);
Logger.getRootLogger().setLevel(Level.OFF);
is there any solution to disable all logs from htmlunit?
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop