On Oct 20, 2008, at 5:19 PM, Peter Steele wrote:
The following patch to the extras companion should allow
an %d pattern in an EnhancedPatternLayout without a explicit timezone
to follow changes to the default timezone without an undue
performance
hit. The timezone should be updated at most once a second, since
CachedDateFormat should handle the more frequent calls. I've run
the
standard unit tests against it and it didn't break anything, but I
haven't attempted to test it while changing the system timezone.
I'd appreciate your feedback. If the works for you, we could
consider
this for the next release of the extras companion.
I'll give this a try. I've never built log4j from src before, which
means
I've never tried this companions module before either. I'll see what I
can
do to get a new jar file build with your patched code and then give
it a
try in our app. Thanks for the help.
Shouldn't need to build log4j just extras. I filed a bug (46046) and
committed the early changes. If there is a problem, we can back it
out. To build, download Maven 2.0.9 from http://maven.apache.org/ and
unzip and place on path. After that, building extras should be as
simple as:
svn co http://svn.apache.org/repos/asf/logging/log4j/companions/extras/trunk
extras
cd extras
maven package
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]