https://issues.apache.org/bugzilla/show_bug.cgi?id=57240

            Bug ID: 57240
           Summary: Log4j is writing today's logs in yesterday's log file
           Product: Log4j
           Version: 1.2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Appender
          Assignee: [email protected]
          Reporter: [email protected]

I am using log4j-1.2.16 and facing the following problem:
20-Nov-2014 logs are being written in xyz.log.2014-11-19 .
xyz.log.2014-11-19 is already rotated/rolled log.
I havent done any changes in log4j.properties since 1 year approximately.
Please tell me what is causing it and is it an existing bug or not .
If it is an existing bug then in which version it was fixed.

Please suggest how to fix this.

Web Server = Apache 2.4.4
Tomacat 7
Linux 2.6.18-348.el5 x86_64
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Below is my log4j.properties:

log4j.rootLogger=INFO,logfile
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.DatePattern='.'yyyy-MM-dd
log4j.appender.logfile.File=/home/user/product//log/xyz.log
log4j.appender.logfile.encoding=UTF-8
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{dd MMM yyyy HH\:mm\:ss} %-5p
[%t] %-15C{1} - %m%n

log4j.logger.org.hibernate=FATAL
log4j.logger.net.htmlparser.jericho=FATAL
log4j.logger.com.mchange=FATAL
log4j.logger.com.sshtools=FATAL
log4j.logger.com.mysql.jdbc=FATAL

log4j.rootCategory=debug, dest2
log4j.appender.dest2=org.apache.log4j.RollingFileAppender
log4j.appender.dest2.Threshold=DEBUG
log4j.appender.dest2.File=log/purge2.log
log4j.appender.dest2.Append=true
log4j.appender.dest2.MaxFileSize=10MB
log4j.appender.dest2.MaxBackupIndex=2

log4j.appender.dest2.layout=org.apache.log4j.PatternLayout
log4j.appender.dest2.layout.ConversionPattern=[%d{ISO8601}][%t](%F\:%L) - %m%n

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to