| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if it can handle throwables contained in logging eventsThe first element of the chain head)This method computes whether a chain of converters handles exceptions or not. |
| public boolean | Returns: true if it can handle throwables contained in logging eventsThe composite converter compositeConverter)This method computes whether a composite converter handles exceptions or not. |
| public void | process(Context context, Converter<ILoggingEvent>
The first converter in the chain head)Implements ch. |
| EnsureExceptionHandling | back to summary |
|---|---|
| public EnsureExceptionHandling() | |
| chainHandlesThrowable | back to summary |
|---|---|
| public boolean chainHandlesThrowable(Converter<ILoggingEvent> head) This method computes whether a chain of converters handles exceptions or not.
| |
| compositeHandlesThrowable | back to summary |
|---|---|
| public boolean compositeHandlesThrowable(CompositeConverter<ILoggingEvent> compositeConverter) This method computes whether a composite converter handles exceptions or not.
| |
| process | back to summary |
|---|---|
| public void process(Context context, Converter<ILoggingEvent> head) Implements ch. This implementation checks if any of the converters in the chain handles
exceptions. If not, then this method adds a
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.
| |