Class MessageConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<ILoggingEvent>
ch.qos.logback.core.pattern.FormattingConverter<ILoggingEvent>
ch.qos.logback.core.pattern.DynamicConverter<ILoggingEvent>
ch.qos.logback.classic.pattern.ClassicConverter
ch.qos.logback.classic.pattern.MessageConverter
- All Implemented Interfaces:
ContextAware, LifeCycle
Return the event's formatted message.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class DynamicConverter
started -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ILoggingEvent event) The convert method is responsible for extracting data from the event and returning a formatted string representation.Methods inherited from class DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stopMethods inherited from class FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
MessageConverter
public MessageConverter()
-
-
Method Details
-
convert
Description copied from class:ConverterThe convert method is responsible for extracting data from the event and returning a formatted string representation.- Specified by:
convertin classConverter<ILoggingEvent>- Parameters:
event- the event to convert- Returns:
- the formatted string representation
-