From: Kevin G. <ke...@go...> - 2003-03-07 04:47:25
|
> > In Log4perl the default date format is "YYYY/MM/DD HH:mm::ss". In > > log4j it seems to be "YYYY-MM-dd HH:mm:ss,SSS" (ISO8601) Why not use > > the same default format as log4j? At least a comment about this in the > > docs would be nice. > > Problem with ",SSS" is that it's a standard Java feature but it's only > available in Perl if Time::HiRes is installed. Regarding slashes vs. > dashes, I'm flexible, though. Only drawback is that if we change it, > some people's log files will change which might cause some headache for > post processors they might have in place. Votes? I'm all for conformity, but 1) can someone point me to where log4j defines that as the default? I can't find it. We do match their ISO8601 behavior with "%d{ISO8601}". 2) the java SimpleDateFormat (http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html) defines "y" but not "Y". Both log4perl and log4j seem to go back and forth between YYYY and yyyy, what's up with that, are they really interchangeable? 3) if that is the log4j default, we could add the ,SSS if Time::HiRes is installed. 4) if we do change, should note it prominently somewhere I guess -- Happy Trails. . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510)525-5217 |