Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.11
-
Fix Version/s: 6.1.15.rc4
-
Component/s: None
-
Labels:None
-
Environment:JDK 1.5 + Locale: FRENCH
-
Number of attachments :
Description
NCSARequestLog.java (in package org.mortbay.jetty) uses following variable:
private Locale _logLocale = Locale.getDefault();
Unfortunatly, the date is formatted with the locale of the user which is not correct for WEBALIZER (see: http://www.webalizer.org/). They are NOT compatible because it must use (as other programes) English format. My proposal is to patch the code as follow:
private Locale _logLocale = Locale.ENGLISH;
and to add a getter & a setter for this value. It will resolve my issue (:
Webalizer V2.01-10 (Linux 2.6.18-xenU) locale: C Using logfile STDIN (clf) Using GeoIP database /usr/share/GeoIP/GeoIP.dat Creating output in /srv/d_oxande/www/oxande.com/htdocs/stats Hostname for reports is 'oxande' Reading history file... webalizer.hist Warning: Truncating oversized date field Warning: Truncating oversized referrer field Error: Skipping record (bad date): [25/janv./2009:18:03:05 +000 [1] Generating report for January 2009 Generating summary report Saving history information... 427 records (1 bad) in 1.00 seconds, 427/sec
If your'e running jetty embedded, simply execute this before anything else:
If standalone, add this as the first element of your jetty.xml (after <Configure>):
We could prolly add a locale param in the constructor.
But I believe the samples above should work you.
Cheers