I am trying to embed Jetty 6.1 in another program. Jetty is dumping INFO-log information and I need to turn it off. Is there a simple way to disable logging programmaticaly?
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- apache modules ap_log_perror is at a different lev
相关文章
- how do I log requests and responses for debugging
- Android Studio doesn't display logs by package
- How to use Jetty with Let's Encrypt certificat
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Integrating Jetty with RESTEasy
- Laravel log file based on date
- Java -How to get logger to work in shutdown hook?
Looking at the debugging page mentioned by Vinay:
So it's a matter of putting the right jar file. For instance, you could put a log4j compatible interface and configuring your log4j configuration file properly to mute completely jetty's logging statements or to be more verbose.
This worked for me, but just make sure to call it before starting the server.
In Jetty Embedded you can try: org.mortbay.log.Log.setLog(null); Before call Server.
Use this
A more concise version of Jeff Chern's answer:
.
Set the
StdErrLog
level toWARN
, before starting your server: