logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21639] New: - RollingFileAppender intermittently appends to yesterday's log
Date Wed, 16 Jul 2003 08:28:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21639>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21639

RollingFileAppender intermittently appends to yesterday's log

           Summary: RollingFileAppender intermittently appends to
                    yesterday's log
           Product: Log4j
           Version: 1.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Appender
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: susan.maddison@arena-online.com


I have this problem with DailyRollingFileAppender & RollingFileAppender, 
whether older logs are appended with a number (.1) or yesterday's date (.2003-
07-14), log4j intermittently appends to an old log.

Example 1: On 14 Jul should be writing to BuildReport.log, not yesterday's log.
-rw-rw-rw-   1 bvuser   bv1to1   4568493 Jul 14 23:54 BuildReport.log.2003-07-13

Example 2: idtvJSP/IM.log are the current logs and others should be old logs 
(and at max space), as you can see they're all being written to!
-rw-rw-rw-   1 bvuser   bv1to1   5071714 Jul 15 17:04 idtvIM.log.1
-rw-rw-rw-   1 bvuser   bv1to1   4934517 Jul 15 17:07 idtvJSP.log.1
-rw-rw-rw-   1 bvuser   bv1to1   5291776 Jul 15 17:07 idtvIM.log
-rw-rw-rw-   1 bvuser   bv1to1   6059010 Jul 15 17:07 idtvIM.log.3
-rw-rw-rw-   1 bvuser   bv1to1   5694308 Jul 15 17:07 idtvIM.log.2
-rw-rw-rw-   1 bvuser   bv1to1   5661469 Jul 15 17:07 idtvJSP.log.2
-rw-rw-rw-   1 bvuser   bv1to1   5284844 Jul 15 17:07 idtvJSP.log.3
-rw-rw-rw-   1 bvuser   bv1to1   5185904 Jul 15 17:07 idtvJSP.log

My log4j.properties:
# iDTV Interaction Manager Extended Logging properties. 
log4j.appender.IMExtendedAppender=org.apache.log4j.RollingFileAppender
log4j.appender.IMExtendedAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.IMExtendedAppender.layout.ConversionPattern=%-5p %d [%t] %C{1}.%
M - %m%n
log4j.appender.IMExtendedAppender.File=/usr/local/bvuser/logs/idtvIM.log
#log4j.appender.IMExtendedAppender.ImmediateFlush=false
log4j.appender.IMExtendedAppender.MaxFileSize=10MB
log4j.appender.IMExtendedAppender.MaxBackupIndex=5

# iDTV Interaction Manager Normal Logging properties.
log4j.appender.IMAppender=org.apache.log4j.RollingFileAppender
log4j.appender.IMAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.IMAppender.layout.ConversionPattern=%-5p %d [%t] %C - %m%n
log4j.appender.IMAppender.File=/usr/local/bvuser/logs/idtvIM.log
#log4j.appender.IMAppender.ImmediateFlush=false
log4j.appender.IMAppender.MaxFileSize=10MB
log4j.appender.IMAppender.MaxBackupIndex=5

# iDTV JSP Extended Logging properties. 
log4j.appender.JSPExtendedAppender=org.apache.log4j.RollingFileAppender
log4j.appender.JSPExtendedAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.JSPExtendedAppender.layout.ConversionPattern=%-5p %d [%t] %C{1}.%
M - %m%n
log4j.appender.JSPExtendedAppender.File=/usr/local/bvuser/logs/idtvJSP.log
#log4j.appender.JSPExtendedAppender.ImmediateFlush=false
log4j.appender.JSPExtendedAppender.MaxFileSize=10MB
log4j.appender.JSPExtendedAppender.MaxBackupIndex=5

# iDTV JSP Normal Logging properties.
log4j.appender.JSPAppender=org.apache.log4j.RollingFileAppender
log4j.appender.JSPAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.JSPAppender.layout.ConversionPattern=%-5p %d [%t] %C - %m%n
log4j.appender.JSPAppender.File=/usr/local/bvuser/logs/idtvJSP.log
#log4j.appender.JSPAppender.ImmediateFlush=false
log4j.appender.JSPAppender.MaxFileSize=10MB
log4j.appender.JSPAppender.MaxBackupIndex=5

# iDTV Studio(Piranha) Logging properties.
log4j.appender.StudioAppender=org.apache.log4j.FileAppender
log4j.appender.StudioAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.StudioAppender.layout.ConversionPattern=%-5p %d [%t] %C - %m%n
log4j.appender.StudioAppender.DatePattern='.'yyyy-MM-dd
log4j.appender.StudioAppender.File=/usr/local/bvuser/logs/studio.log
#log4j.appender.StudioAppender.ImmediateFlush=false

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


Mime
View raw message