开发者

Disable jettys debug output in (html)Unit Tests

开发者 https://www.devze.com 2023-04-01 16:56 出处:网络
i use Jetty (v.6.1.25) in a Unit Test(more specific: htmlUnit) to test开发者_StackOverflow Servlets,Filters and something like.

i use Jetty (v.6.1.25) in a Unit Test(more specific: htmlUnit) to test开发者_StackOverflow Servlets,Filters and something like. And I don't will see all the debug output in console. I've found something like:

System.setProperty("org.mortbay.log.DEBUG","false");

..but it doesn't work for me. Is there a simple way to say: "be quiet"? (Of course errors i must see :) )


Use the command line to hide the debug output:

java -jar start.jar etc/jetty-logging.xml

and route it to a rolling log file.

References

  • Jetty Logging
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号