From: Kevin G. <ke...@go...> - 2002-11-07 18:21:47
|
While we're on the subbject of PatternLayout, is there any reason we're not including precision (aka max field width) in the sprintf format specifiers? We can do %20m but not %20.20m It's supported in log4j (http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html) and the change is below, shall I put it in? --- old/PatternLayout.pm Thu Nov 7 10:13:11 2002 +++ lib/Log/Log4perl/Layout/PatternLayout.pm Thu Nov 7 10:10:33 2002 @@ -89,7 +89,7 @@ } # Parse the format - $format =~ s/%(-*\d*) + $format =~ s/%(-?\d*(?:\.\d+)?) ([cCdfFIlLmMnprtxX%]) (?:{(.*?)})*/ rep($self, $1, $2, $3); -- Happy Trails . . . Kevin M. Goess (and Anne and Frank) 904 Carmel Ave. Albany, CA 94706 (510) 525-5217 |