|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.classic.pattern.EnsureExceptionHandling
public class EnsureExceptionHandling
Constructor Summary | |
---|---|
EnsureExceptionHandling()
|
Method Summary | |
---|---|
boolean |
chainHandlesThrowable(Converter head)
This method computes whether a chain of converters handles exceptions or not. |
void |
process(Converter<ILoggingEvent> head)
This implementation checks if any of the converters in the chain handles exceptions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnsureExceptionHandling()
Method Detail |
---|
public void process(Converter<ILoggingEvent> head)
ExtendedThrowableProxyConverter
instance to the end of the chain.
This allows appenders using this layout to output exception information event if the user forgets to add %ex to the pattern. Note that the appenders defined in the Core package are not aware of exceptions nor LoggingEvents.
If for some reason the user wishes to NOT print exceptions, then she can add %nopex to the pattern.
process
in interface PostCompileProcessor<ILoggingEvent>
head
- The first converter in the chainpublic boolean chainHandlesThrowable(Converter head)
head
- The first element of the chain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |