How to configure Jetty 8 to use syslog
Running on Ubuntu I want Jetty 8 to write to syslog instead of the logs folder. In my Java, I just want to use getLogger.info (messaeg) ...
I can see application logs in Jetty's logs $JETTY_HOME/logs
, but I want all Jetty messages to be written to syslog.
+3
ZAky
source
to share
1 answer
I would recommend using slf4j + logback as described here: http://wiki.eclipse.org/Jetty/Tutorial/Sifting_Logs_with_Logback
Then you can configure the logback to write to the syslog appender like this one: http://logback.qos.ch/manual/appenders.html#SyslogAppender
Should be pretty straight forward using these docs. If you still have questions, ask right away.
+2
Thomas becker
source
to share