The /usr/tomcat/logs/catalina.out file has these entries:
Feb 18, 2009 8:56:27 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Feb 18, 2009 8:56:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2377 ms

How to convert date from Feb 18, 2009 8:56:27 PM to 2009-02-18 20:56:27?

I set the files
/opt/axis2-1.2/webapp/WEB-INF/classes/log4j.properties
/usr/local/apache-tomcat-6.0.10/webapps/xmc/WEB-INF/classes/log4j.properties
to:
log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c 
- %m%n
log4j.appender.LOGFILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} [%t] 
%-5p %c %x - %m%n

Restarting tomcat 6 on FC6 linux but the log date format still do not change.



      __________________________________________________________________
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to