From: 歌 <814...@qq...> - 2014-02-26 08:39:10
|
This worked for me. To remove all output from the latest version of HtmlUnit you just have to add these lines in a static block or in your main class: java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(Level.OFF); System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");If this cannot work,you can see this page:http://stackoverflow.com/questions/3600557/turning-htmlunit-warnings-offHope you can solve this problem. ------------------ Original ------------------ From: "Arya Farzan";<ary...@gm...>; Date: Wed, Feb 26, 2014 04:29 PM To: "htmlunit-user"<htm...@li...>; Subject: [Htmlunit-user] turning off rhino usage warning I sometimes get rhino usage warnings when running tests. Is there any way to disable these warning messages from being displayed? |