DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42797>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42797

           Summary: RollingFileAppender writes into multiple log files
           Product: Log4j
           Version: 1.2
          Platform: Sun
        OS/Version: SunOS
            Status: NEW
          Severity: major
          Priority: P2
         Component: Appender
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to