https://issues.apache.org/bugzilla/show_bug.cgi?id=45721


Curt Arnold <[EMAIL PROTECTED]> changed:

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




--- Comment #15 from Curt Arnold <[EMAIL PROTECTED]>  2008-09-19 20:36:49 PST 
---
Committed an implementation in rev 697315.  Implementation supports
ThrowableRenderer's in a fashion somewhat similar to ObjectRenderers.  Two
ThrowableRenderer's are provided: org.apache.log4j.DefaultThrowableRenderer
which implements the existing behavior and EnhancedThrowableRenderer which
outputs code source location and version when running on JDK 1.4 or later or
falls back to the existing behavior on JDK 1.3 and earlier.

DOMConfigurator and PropertyConfigurator have been modified to support
configuring ThrowableRenderer's.  Add

log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer

or

<throwableRenderer class="org.apache.log4j.EnhancedThrowableRenderer"/>

to log4j.properties or log4j.xml respectively.

EnhancedThrowableRenderer avoids writing and parsing the output of
Throwable.printStackTrace which could potentially offset some of the
performance hit of getting the source location and version.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to