how to configure jetty 7 to use syslog or log4j

Posted by egemen ozden on Stack Overflow See other posts from Stack Overflow or by egemen ozden
Published on 2010-05-21T12:47:12Z Indexed on 2011/11/14 17:51 UTC
Read the original article Hit count: 144

Filed under:
|
|
|
|

I am looking for a way to direct all the jetty 7 logging to syslog. My current configuration dumps everything to JETTY_HOME/logs/.. After some initial ivestigation, it seems I should change JETTY_HOME/etc/jetty-logging.xml, but this does not look straightforward. It looks like I should create a new PrintStream implementation which sends its output to syslog and redirecting stderr and stdout to that class in jetty-logging.xml.

any easier way to do that or to make jetty log directly to log4j ?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about tomcat