Here's the log4j.properties file code I have. I'm trying to get the
log file to display the time in UTC. For example, instead of
2004-09-28 13:00:00.000 GMT-0500, I want to display 2004-09-28
17:00:00.00 GMT-0000. Any suggestions?
# ExportAutomation Log4J configuration Properties.
log4j.rootLogger=@LOG4J_ROOT_APPENDERS@
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=../beans/groupsubgroup/log/EventLog.txt
log4j.appender.R.MaxFileSize=900KB
# Keep 20 backup files
log4j.appender.R.MaxBackupIndex=20
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%-5p %d{yyyy-MM-dd
HH:mm:ss.SSS 'GMT'Z} %c [%t] - %m%n
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=>> %-4r - %m%n
# SMTP appender
log4j.appender.SMTPTest=org.apache.log4j.net.SMTPAppender
log4j.appender.SMTPTest.layout=org.apache.log4j.PatternLayout
log4j.appender.SMTPTest.layout.ConversionPattern=%d %-5p [%t] - %m%n
log4j.appender.SMTPTest.To=@TO_MAIL@
log4j.appender.SMTPTest.SMTPHost=smtpna1.ford.com
log4j.appender.SMTPTest.Subject=@SMTP_MAIL_SUBJECT@
[email protected]
log4j.appender.SMTPTest.BufferSize=50