0
votes

I am using slf4j with Java Util Logging, and my application logs are directed through Jetty.

  1. How can I get separate output of Jetty startup logs and my application logs. Right now, they are both logged into the same file under jetty/logs.
  2. How can I control the Jetty startup log format? e.g. I want to change the date format from default "2012-09-13 14:55:36.178:INFO..." to "Sept 13, 2012 14:55:36.178:INFO..." in Jetty logs.
1

1 Answers

0
votes

You can take a look at this page for inspiration:

http://wiki.eclipse.org/Jetty/Tutorial/Sifting_Logs_with_Logback

Long story short, once you have the slf4j-api in the mix then jetty turns logging over to it so you are able to configure whatever you want via slf4j configuration mechanisms.