From: Jonathan M. <jma...@al...> - 2005-03-24 18:13:11
|
Mike Schilli wrote: >Jonathan Manning wrote: >>Based on the log4j description (but not the examples) I think it should be: >>E = W >>EE = We >>EEE = Wed >>EEEE+ = Wednesday > > Not sure about this one, though. > ... > Isn't it E=Wed and EE=Wed instead? That's fine. My thinking was that it would make it more consistent with number fields -- the width of the placeholder == the width of the replacement string. But the spec says nothing about that. It just says less than 4 letters means use a 'short form', if available. I suppose that limiting it to the 3 char short version makes text-only fields more consistent with text and number fields (like month) - where 1 and 2 letter placeholders are used for the numerical version. Just adding the 3-letter versions for both weekday and month will help get log4perl closer to that log4j spec (and make the example work as advertised), and is fine with me (since it fixes my apache log usage). Thanks!, ~J |