views:

713

answers:

2

How do I get jetty to turn down the level of logging from the default of INFO?

I'm actually trying to run the default Apache Solr installation, which ships with jetty, but dumps a lot of information to the console, and I'd only like to see warnings.

I don't want to go hack up the code, I just would like to be able to drop a config file somewhere, but I've been googling for a while, and all I find are obsolete methods or programmatic methods.

Thanks!

edit: -D options would be great, too!

A: 

Find the file logging.properties under your JAVA_HOME directory

Change the default global logging level from

.level= INFO

to

.level= WARNING

FiguredItOut
A: 

If you run jetty 6 as a daemon, the logging config file is:

/usr/share/jetty/resources/log4j.properties

(Where /usr/share/jetty is your $jetty.home.) And to turn down the default log level in that log4jproperties file, change the rootLogger entry:

log4j.rootLogger=WARN, stdout
Justin Ludwig