Log4j Log Time problem in Solaris
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mohan_Namadhari
Posted On:   Wednesday, February 5, 2003 05:10 AM

I have developed a log system for my project. Its working fine in Windows as well as solaris except that log time / date that writes into log file. In windows, it writes the currect time where as in solaris, same code writes wrong time into log file. Always time difference in Solaris is around 5 hours and 10 minutes.

for date formats in the properties file looks like

			

log4j.appender.debug1.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss,SSS} | %p%m %n



Can anyone explain me what I'm doing wrong, or is this Log4J's intended behaviour?

Thanks!!!

Re: Log4j Log Time problem in Solaris

Posted By:   Benoit_Quintin  
Posted On:   Wednesday, February 5, 2003 06:29 AM

Check 2 things : The actual time on your server (I suspect it's off by 10 minutes) and the GMT (your locale).
About | Sitemap | Contact