Disable jettys debug output in (html)Unit Tests
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
精彩评论