public class NopThrowableInformationConverter extends ThrowableHandlingConverter
This converter is useful to pretend that the converter chain for PatternLayout actually handles exceptions, when in fact it does not. By adding %nopex to the conversion pattern, the user can bypass the automatic addition of %ex conversion pattern for patterns which do not contain a converter handling exceptions.
Users can ignore the existence of this converter, unless they
want to suppress the automatic printing of exceptions by
PatternLayout.
| Constructor and Description |
|---|
NopThrowableInformationConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(ILoggingEvent event)
The convert method is responsible for extracting data from the event and
storing it for later use by the write method.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, isStarted, setContext, setOptionList, start, stopgetFormattingInfo, setFormattingInfo, writepublic java.lang.String convert(ILoggingEvent event)
Converterconvert in class Converter<ILoggingEvent>Copyright © 2010 - 2023 Adobe. All Rights Reserved