[PJUG Javamail] I'm having a weird problem with log4j logs w/Tomcat
Christian Pich
cmpich at cs.uoregon.edu
Thu Aug 7 12:56:33 EDT 2008
Hi Rob,
Funny I came across the same issue in the beginning of spring. Our
production server was always an hour behind in the
log statements even though the server itself (Solaris) displayed the
right time in a shell. I made sure the Java properties are set to use
the correct
time zone and to observe daylight savings time. Our dev server was ok
and had the same Java properties.
I couldn't figure it out either and after a while it mysteriously
resolved by itself.
I have some suspect:
Our server (Tomcat) was not restarted for a while and it was right
around daylight savings time switch
Make sure your Java properties are the same on either server and
they allow for DST
log4j I figured is getting the time from System and is not making any
changes to it.
Christian
Rob Tanner wrote:
> Hi,
>
> Here's a strange one. On my production server my applications log
> timestamps are off by one hour (as if running on standard time) while
> the system clock and syslog logs are fine. The timestamps on myy
> development machine, on the other hand, are all correct.
>
> Both machines are running Tomcat 5.5.23 and log4j 1.2.15. And the
> log4j.properties files are identical between the production and my
> development machine.
>
> Any idea what might be going on?
>
> Thanks,
>
> Rob Tanner
> Linfield College
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Web Site - http://www.pjug.org/
> Javamail mailing list
> Javamail at pjug.org
> http://www.pjug.org/mailman/listinfo/javamail
>
--
------------------------------------------------------------------------
Christian Pich, Ph.D.
University of Oregon
Zebrafish Information Network
Phone: 541-346-1581
Email: cmpich at cs.uoregon.edu
Web: http://zfin.org
------------------------------------------------------------------------
More information about the Javamail
mailing list