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 12:33:00 UTC
DO NOT REPLY [Bug 38567] New: - 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
Summary: When I extend DailyRollingFileAppender and override the
subAppend method, log rotation is not happening
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: prabhu@efrontier.com
Hi all,
I am trying to create a custom appender by extending DailyRollingFileAppender. I
am also overriding the method, subAppend, to do some more formatting of my
messages, before writing.
But if I override this method, log rotation is not happening.
The only solution, I had is to copy lot of code from DailyRollingFileAppender
like the method rollOver etc.
Suggest me some simple solution or do some changes to the design, so that log
rotation does not happen in subAppend method.
Prabhu
--
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 38567] - When I extend DailyRollingFileAppender and override the subAppend method, log rotation is not happening
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=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
DO NOT REPLY [Bug 38567] - When I extend DailyRollingFileAppender and override the subAppend method, log rotation is not happening
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=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
------- Additional Comments From jessh@ptc.com 2006-02-08 18:16 -------
DailyRollingFileAppender may be deprecated, but it should be noted that
requiring a complex XML configuration to attain this functionality will
generally not be appreciated.
Having the existing DailyRollingFileAppender config be a simple configuration of
the new general mechanism and *not* be deprecated would be preferable overall...
--
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