You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2007/07/02 21:19:36 UTC

DO NOT REPLY [Bug 42797] New: - RollingFileAppender writes into multiple log files

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: log4j-dev@logging.apache.org
        ReportedBy: sonrani@cisco.com


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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


DO NOT REPLY [Bug 42797] - RollingFileAppender writes into multiple log files

Posted by bu...@apache.org.
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


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From carnold@apache.org  2007-08-22 20:18 -------


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

-- 
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org