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





--- Comment #7 from James Strachan <[EMAIL PROTECTED]>  2008-09-03 03:21:47 PST 
---
Created an attachment (id=22519)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22519)
here's a newer patch which implements Curts ideas

Based on the feedback of this thread, I've refactored the patch.

* there's a helper method on ThrowableInformation.getThrowableStrRep(true) to
get an enhanced format (in case anyone wants it) but by default it remains
unchanged

* the PatternLayout now has a property ExtendedStackTrace which is off by
default

So out of the box there are no changes to log4j's output and all the tests
still pass.

But if you enable ExtendedStackTrace on the layout you get the extended stack
trace. You can do this via XML or via the properties file...

e.g. 

log4j.appender.testAppender.layout=org.apache.log4j.MyPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%5p %-4# - %m%n
log4j.appender.testAppender.layout.ExtendedStackTrace=true

or

    <layout class="org.apache.log4j.PatternLayout">
      <param name="ExtendedStackTrace" value="true"/>
    </layout>

I'd really rather it be enabled by default but figured that might need to wait
for a major version change


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