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=17498>.
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=17498

Logging inconsistencies using DailyRollingFileAppender

           Summary: Logging inconsistencies using DailyRollingFileAppender
           Product: Log4j
           Version: 1.2
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an unusual problem with Logging and DailyRollingFileAppender.  I have 
configured Log4J as follows:

# The debug log configuration
log4j.appender.A7=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A7.DatePattern='.'yyyy-MM-dd
log4j.appender.A7.File=${debug_log_file} 
log4j.appender.A7.layout=org.apache.log4j.PatternLayout
log4j.appender.A7.layout.ConversionPattern=%d - %m%n
#This log can be turned off by changing the priority lower than ERROR which is 
DEBUG or INFO or WARN
log4j.category.com.cibc.ibas.logger.debug=DEBUG, A7

The Problem is that when I look in the logs directory I see the following:

-rw-rw-r--   1 proj12   proj12    829643 Feb 27 11:11 ibas.log
-rw-rw-r--   1 proj12   proj12    747099 Feb 27 11:15 ibas.log.2003-02-26

as you can see today's log (for Feb.27th) and yesterday's log have the same  
timestamp which means that Log4J is still writing to both logs files.  When I 
look at the log ibas.log.2003-02-26 it has logging activity for the 27th of 
February.  It seems that the log files are always a day behind. (i.e. 
ibas.log.2003-02-25 has logging activity for the 26th.. ibas.log.2003-02-24 has 
logging activity for the 25th etc..)

It seems as though log4j rolls over the file however keeps writing to both the 
new log file and the backup log file. Then repeats the same pattern the 
following day. We are running WebLogic 6.1 SP3 in Sun Solaris 5.8 O/S.

Any help would be much appreciated,

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

Reply via email to