In Jetty, can NCSARequestLog be configured to auto-detect the time zone?
Posted
by David Moles
on Stack Overflow
See other posts from Stack Overflow
or by David Moles
Published on 2010-03-29T13:31:27Z
Indexed on
2010/03/29
13:33 UTC
Read the original article
Hit count: 411
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?
© Stack Overflow or respective owner