I am still unsure of your setup and what is actually performing the logging and what are the timezone settings on the machine(s) holding the log files. Log4j stores the time UTC in the event so it is timezone independent so it is a matter of how it is displayed. The following link courtesy of a quick Google explains this a bit more.
http://www.ingrid.org/jajakarta/log4j/jakarta-log4j-1.1.3/docs/FAQ.html# timestamp You could also try changing the ConversionPattern to %d{yyyy-MM-dd HH:mm:ss}{GMT}Z %-5p %m%n if you want it displayed in GMT. Good luck Jonathan -----Original Message----- From: sslSuresh Appala [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 September 2005 5:34 PM To: Log4J Users List Subject: RE: Timing difference in log4j Hi My component configurations are as follows. log4j.appender.A-PUB=org.apache.log4j.RollingFileAppender log4j.appender.A-PUB.layout=org.apache.log4j.PatternLayout log4j.appender.A-PUB.layout.ConversionPattern=%dGMT %-5p %m%n My component is used by many applications. It is giving correct time for some applications and for some other applications it is giving 8 hrs lack.Im not able to simulate same problem in my local PC. But weblogic server logs are correct. Thanks Suresh -----Original Message----- From: Mangano, Jonathan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 5:19 PM To: Log4J Users List Subject: RE: Timing difference in log4j I am going to assume from your post that there is an 8 hour timezone difference between yourself and your server and you are using a program like chainsaw to view the log4j files. If you are viewing weblogic server files they probably contain a date time in the format of yyyy/MM/dd hh:mm:ss but the log4j logs "typically" contain the time in milliseconds. So if you are viewing your log4j logs using something like chainsaw it will display the time in milleseconds as yyyy/MM/dd hh:mm:ss using your local timezone, hence the 8 hrs difference. If this is not case please provide more information about the relative timezones, the log file viewer and the log format you are using. Regards Jonathan -----Original Message----- From: sslSuresh Appala [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 September 2005 4:50 PM To: Log4J Users List Subject: RE: Timing difference in log4j Hi Can any body help me why my application logs are lacking 8 hrs time difference compare to my weblogic server logs?? Thanks Suresh -----Original Message----- From: sslSuresh Appala [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 9:41 AM To: Log4J Users List Subject: Timing difference in log4j Importance: Low Hi, I am using log4j for logging my application logs. My weblogic server logs are giving correct local time where as in my application(deployed in weblogic) logs, there is 8 hrs lack in timing compared to the localtime . May I know what could be the cause? Pls. help me in resolving this time stamp problem. Thanks and regards, Suresh --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
