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/01/16 20:34:07 UTC
DO NOT REPLY [Bug 41385] New: - [Possible Enhancement] Enable stack trace filtering
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=41385>.
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=41385
Summary: [Possible Enhancement] Enable stack trace filtering
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: aalmiray@yahoo.com
When using Eclipse I noticed it was possible to filter out some lines of a stack
trace when doing unit testing, I thought that feature was on Log4J but it turns
out it is Eclipse only. I have already coded two appenders that have this
feature enabled (source can be browsed at
https://construct.dev.java.net/source/browse/construct/src/java/org/kordamp/construct/commons/log/)
and I think this may be added to Log4j.
The current implementation relies on JDK 1.4+ regexps, but I'm reworking it so
it may choose between ORO and JDK1.4+ depending on environment or the user's
choice, also I think the best place to put the code is in AppenderSkeleton and
retrofit every Log4j provided Appender with the option to call the filtering
(inside append, doAppend or subAppend, whichever the case is). Of course the
default functionality will be to filter nothing to be backwards compatible.
--
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 41385] - [Possible Enhancement] Enable stack trace filtering
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=41385>.
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=41385
carnold@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From carnold@apache.org 2007-08-22 19:52 -------
Better if this was done inside of a layout and the layout returns false for ignoresThrowables which will skip
the appenders fallback implementation for outputting the stack trace. Could could just have a wrapping
Layout that could encapsulate another layout (say PatternLayout or EnhancedPatternLayout) for the
primary line and then filters the stack trace as appropriate using your filter. The log4j extras companion
(the likely home of such a Layout) depends on JDK 1.4 regex and would prefer the use of that instead of
jakarta-oro.
--
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 41385] - [Possible Enhancement] Enable stack trace filtering
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=41385>.
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=41385
------- Additional Comments From aalmiray@yahoo.com 2007-01-24 20:16 -------
The proposed patch is against branches/v1_2-branch
--
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 41385] - [Possible Enhancement] Enable stack trace filtering
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=41385>.
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=41385
------- Additional Comments From aalmiray@yahoo.com 2007-01-24 10:53 -------
Created an attachment (id=19450)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19450&action=view)
Proposed patch & tests
Includes the following:
New Classes ->
org.apache.log4j.RegexpMatcher
org.apache.log4j.AbstractRegexpMatcher
org.apache.log4j.JDKRegexpMatcher
org.apache.log4j.Perl5RegexpMatcher
org.apache.log4j.StackTraceFilteringHelper
Updates on existing classes:
org.apache.log4j.AppenderSkeleton
org.apache.log4j.WriterAppender
org.apache.log4j.net.SyslogAppender
org.apache.log4j.net.SMTPAppender
org.apache.log4j.net.TelnetAppender
org.apache.log4j.nt.NTEventLogAppender
Update on build.xml to include jakarta-oro
Update on tests/build.xml to include new testcase StackTraceFilterTest
New test case -> org.apache.log4j.StackTraceFilterTest
--
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