[HtmlUnit] [htmlunit:feature-requests] #254 Disable HtmlUnit logging
RBRi via HtmlUnit-develop <[email protected]> Wed, 24 Apr 2019 18:20:40 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/feature-requests/254/9301dbc7651bda1d642c943d53df2012442a2feb.feature-requests@htmlunit.p.sourceforge.net> |
This is a multi-part message in MIME format.
--===============4901578304849520986==
Content-Type: multipart/related;
boundary="===============6492656219336099026=="
This is a multi-part message in MIME format.
--===============6492656219336099026==
Content-Type: multipart/alternative;
boundary="===============0481533737285626686=="
MIME-Version: 1.0
--===============0481533737285626686==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
- **status**: pending --> closed
- **Comment**:
2.35.0 includes reworked logging and updated documentation. Thi is fixed from my point of view.
---
** [feature-requests:#254] Disable HtmlUnit logging**
**Status:** closed
**Group:** 2.19
**Created:** Thu Jun 14, 2018 04:35 AM UTC by Ganesh Prakash Barshile
**Last Updated:** Tue Jul 24, 2018 04:33 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.
--===============0481533737285626686==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit
<div class="markdown_content"><ul>
<li><strong>status</strong>: pending --> closed</li>
<li><strong>Comment</strong>:</li>
</ul>
<p>2.35.0 includes reworked logging and updated documentation. Thi is fixed from my point of view.</p>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/feature-requests/254/">[feature-requests:#254]</a> Disable HtmlUnit logging</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.19<br/>
<strong>Created:</strong> Thu Jun 14, 2018 04:35 AM UTC by Ganesh Prakash Barshile<br/>
<strong>Last Updated:</strong> Tue Jul 24, 2018 04:33 PM UTC<br/>
<strong>Owner:</strong> RBRi<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/htmlunit/feature-requests/254/attachment/Logger.png">Logger.png</a> (132.4 kB; image/png)</li>
</ul>
<p>We want to disable all logs of htmlunit unit. We tried it using log4j & commons logging but unable to do it.<br/>
We tried following code:-</p>
<p>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);<br/>
Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject").setLevel(Level.OFF);Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument").setLevel(Level.OFF);<br/>
Logger.getLogger("com.gargoylesoftware.htmlunit.html.HtmlScript").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.WindowProxy").setLevel(Level.OFF);<br/>
Logger.getLogger("org.apache").setLevel(Level.OFF);<br/>
Logger.getRootLogger().setLevel(Level.OFF);</p>
<p>is there any solution to disable all logs from htmlunit?</p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/feature-requests/">https://sourceforge.net/p/htmlunit/feature-requests/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/feature-requests/options.">https://sourceforge.net/p/htmlunit/admin/feature-requests/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============0481533737285626686==--
--===============6492656219336099026==--
--===============4901578304849520986==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============4901578304849520986==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
--===============4901578304849520986==--