In Jetty, can NCSARequestLog be configured to auto-detect the time zone?

Posted by David Moles on Server Fault See other posts from Server Fault or by David Moles
Published on 2010-03-30T12:55:53Z Indexed on 2010/03/30 13:03 UTC
Read the original article Hit count: 399

Filed under:

It looks as though in 2003 or so NCSARequestLog would pick up the system time zone using TimeZone.getDefault().getID(), but in more recent versions it seems as though it's hard-coded to GMT, unless you override it in jetty.xml or programmatically.

If true, this kind of annoying, since it means if you don't want GMT logging you have to edit jetty.xml for every installation (not to mention twice a year for daylight saving time). Is there a workaround that will let Jetty pick the time zone up from the system?

(X-posted to Stack Overflow.)

© Server Fault or respective owner

Related posts about jetty