You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by manoj JC <ma...@hotmail.com> on 2004/12/21 23:39:25 UTC

The date and time not showing up in the log file

I have three log files set up in my log4j.properties.
The last one is not displaying the dates of the log entries. Three log files 
are created and the messages are getting logged to the corresponding log 
files. But the date and time is not showing up.

This is the log4j.proprties file that I am using.
log4j.rootLogger = INFO, C

# console appender
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.C.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

## general appender, set to INFO for now ##
log4j.logger.com.company1.apps.package1 = @LOGLEVEL@, test1.app
log4j.appender.test1.app = org.apache.log4j.RollingFileAppender
log4j.appender.test1.app.MaxFileSize=500KB
# Keep one backup file
log4j.appender.test1.app.MaxBackupIndex=2
log4j.appender.test1.app.File = /opt/log/test1.app.txt
log4j.appender.test1.app.layout = org.apache.log4j.PatternLayout
log4j.appender.test1.app.layout.ConversionPattern = %d %-5p %c - %m %n
log4j.additivity.com.company1.apps.package1 = false

## struts log ##
log4j.logger.com.company1.apps.package1.struts=@LOGLEVEL@, test2.struts
log4j.appender.test2.struts = org.apache.log4j.RollingFileAppender
log4j.appender.test2.struts.MaxFileSize=500KB
# Keep one backup file
log4j.appender.test2.struts.MaxBackupIndex=2
log4j.appender.test2.struts.File = /opt/log/test2.struts.txt
log4j.appender.test2.struts.layout = org.apache.log4j.PatternLayout
log4j.appender.test2.struts.layout.ConversionPattern = %d %p (%F:%L) - %m%n
log4j.additivity.com.company1.apps.package1.struts = false

## World Check File Download log ##
log4j.logger.com.semagix.apps.package1.util=INFO, test3.util
log4j.appender.test3.util = org.apache.log4j.RollingFileAppender
log4j.appender.test3.util.MaxFileSize=500KB
# Keep one backup file
log4j.appender.test3.util.MaxBackupIndex=2
log4j.appender.test3.util.File = /opt/log/test3.txt
log4j.appender.test3.util.layout = org.apache.log4j.PatternLayout
log4j.appender.test3.util.layout.ConversionPattern = %d %-5p %c - %m %n
log4j.additivity.com.semagix.apps.package1.util = false



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org