org.mmbase.util.logging.log4j
Class StacktraceLoggingPatternLayout
java.lang.Object
org.apache.log4j.Layout
org.apache.log4j.PatternLayout
org.mmbase.util.logging.log4j.StacktraceLoggingPatternLayout
- All Implemented Interfaces:
- OptionHandler
- public class StacktraceLoggingPatternLayout
- extends PatternLayout
This layout can be used in logging in order to print out a stacktrace
for a given logging event. THis is a very expensive call, but can be
very useful when trying to find application bugs. Using this layout
you will see exactly which line of code (or which JSP) generated the
exception.
- Author:
- Johannes Verelst
|
Method Summary |
String |
format(LoggingEvent event)
Overridden from PatternLayout; use the normal pattern to format
the logevent, but also return the current stacktrace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StacktraceLoggingPatternLayout
public StacktraceLoggingPatternLayout()
format
public String format(LoggingEvent event)
- Overridden from PatternLayout; use the normal pattern to format
the logevent, but also return the current stacktrace.
MMBase build 1.8.1.20060716