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 2006/02/08 18:10:16 UTC

DO NOT REPLY [Bug 38567] - When I extend DailyRollingFileAppender and override the subAppend method, log rotation is not happening

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


carnold@apache.org changed:

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




------- Additional Comments From carnold@apache.org  2006-02-08 18:10 -------
org.apache.log4j.DailyRollingFileAppender has been deprecated in log4j 1.3 in preference to the 
org.apache.log4j.rolling.RollingFileAppender which allows pluggable TriggeringPolicy's (detects when to 
roll over the file) and RollingPolicy's (which control how files are renamed or modified during a rollover).  
This represents our attempt to "change the design" of o.a.l.DailyRollingFileAppender.  If you encounter 
issues with log4j 1.3's o.a.l.rolling.RollingFileAppender design, please describe your situation on the 
log4j-dev mailing list and we can work through the issues and possibly improve its design.

If you override DRFA.subAppend() and do not call super.subAppend() or duplicate its code, log rotation 
will not be triggered since the calls to check the rollover criteria are in super.subAppend().  If you must 
use log4j 1.2.x, you could describe your problem on log4j-user and perhaps we could find a better 
solution, however changes to DRFA are highly unlikely since it is deprecated. 

-- 
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