From: <msc...@ao...> - 2003-03-09 18:27:01
|
In a message dated 3/7/2003 5:53:28 AM Eastern Standard Time, Roger Perttu <rog...@ea...> writes: >http://jakarta.apache.org/log4j/docs/manual.html Search for "ISO 8601 >format" and you will find a sample with the d% option. I'm not >suggesting that the manual is any authority in this matter though :-) . I've documented the difference in Layout/PatternLayout.pm for now and left the implementation like it was. If people want ISO, they can select that easily. >However the log4perl docs claims that the standard formats are much >faster (less string processing?). That's definitely not true, because the code just defines } elsif($format eq "ISO8601") { $format = "yyyy-MM-dd HH:mm:ss,SSS"; Where did you see evidence in the documentation that predefined formats are faster? I'd like to correct that if that's in there. >>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? I've thrown out all the 'YYYY' leftovers now. 'yyyy' is the correct way. Let me know if I've overlooked anything ... -- -- Mike ############################ # Mike Schilli # # log...@pe... # # http://perlmeister.com # # log4perl.sourceforge.net # ############################ |