Bug 42797 - RollingFileAppender writes into multiple log files
Summary: RollingFileAppender writes into multiple log files
Status: RESOLVED DUPLICATE of bug 17498
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: Sun SunOS
: P2 major
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 12:19 UTC by Sonia Rani
Modified: 2007-08-22 20:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sonia Rani 2007-07-02 12:19:36 UTC
We have configured daily rotation of log4j version 1.2.8 and noticed that it is
logging data into multiple files dumping some logs into one and some in second file.

e.g 
-rw-r--r--   1 dsuser   dsgroup  54376278 May  5 08:23
call_log_2007_05_04_082302.log
-rw-r--r--   1 dsuser   dsgroup    47701 May  5 15:54 call_log_2007_05_04_163757.log
-rw-r--r--   1 dsuser   dsgroup    51646 May  5 15:54 call_log_2007_05_04_163756.log
-rw-r--r--   1 dsuser   dsgroup  51486341 May  6 08:23
call_log_2007_05_05_082302.log
-rw-r--r--   1 dsuser   dsgroup    47748 May  6 16:12 call_log_2007_05_05_163757.log
-rw-r--r--   1 dsuser   dsgroup    52779 May  6 16:12 call_log_2007_05_05_163756.log

Log4J properties are :-

log4j.appender.sysout=org.apache.log4j.RollingFileAppender
log4j.appender.sysout.File=../log/log.txt
log4j.appender.sysout.MaxFileSize=5MB
log4j.appender.sysout.MaxBackupIndex=40
log4j.appender.sysout.layout=org.apache.log4j.PatternLayout
log4j.appender.sysout.layout.ConversionPattern=%d [%t] %-5p %c{2}%n - %m%n%n
log4j.rootCategory=ERROR, sysout

We are running log-roation 
log-rotation
log-rotation  -l call_log -frequency day

Any help will be appreciated.

Thanks
Comment 1 Curt Arnold 2007-08-22 20:18:17 UTC

*** This bug has been marked as a duplicate of 17498 ***