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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to