
I have a test environment where I'm running a tomcat server and logback, and everything works beautifully, where the various loggers are outputting to the right directories specified in my logback.xml. Trying to use the same configuration file and code, but with a Jetty server, is not working at all. I've tried putting logback.xml in various places like, WEB-INF/resources/, WEB-INF/src/, $JETTY_HOME/etc/, $JETTY_HOME/bin/...All with no luck. I've also tried explicitly specifying the file in jetty.xml with the same results. Not sure where I'm going wrong. Any suggestions? What jar's should I have under $JETTY_HOME/lib/? How can I make jetty server logs work alongside logback? Thanks. -- View this message in context: http://www.nabble.com/logback-and-Jetty-tp14818796p14818796.html Sent from the Logback User mailing list archive at Nabble.com.

Are you using logback-classic or logback-access? Assuming you are using logback-classic, placing the logback.xml file in WEB-INF/classes directory should work fine. By the way, which version of jetty are you using? HTH, whatever21 wrote:
I have a test environment where I'm running a tomcat server and logback, and everything works beautifully, where the various loggers are outputting to the right directories specified in my logback.xml. Trying to use the same configuration file and code, but with a Jetty server, is not working at all.
I've tried putting logback.xml in various places like, WEB-INF/resources/, WEB-INF/src/, $JETTY_HOME/etc/, $JETTY_HOME/bin/...All with no luck. I've also tried explicitly specifying the file in jetty.xml with the same results.
Not sure where I'm going wrong. Any suggestions?
What jar's should I have under $JETTY_HOME/lib/? How can I make jetty server logs work alongside logback?
Thanks.
-- Ceki Gülcü
participants (2)
-
Ceki Gulcu
-
whatever21