- java.lang.Object
-
- ch.qos.logback.core.pattern.Converter<E>
-
- ch.qos.logback.core.pattern.FormattingConverter<E>
-
- ch.qos.logback.core.pattern.DynamicConverter<ILoggingEvent>
-
- ch.qos.logback.classic.pattern.ClassicConverter
-
- ch.qos.logback.classic.pattern.ThreadConverter
-
- All Implemented Interfaces:
ContextAware,LifeCycle
public class ThreadConverter extends ClassicConverter
Return the events thread (usually the current thread).- Author:
- Ceki Gülcü
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
-
Constructor Summary
Constructors Constructor Description ThreadConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconvert(ILoggingEvent event)The convert method is responsible for extracting data from the event and returning a formatted string representation.-
Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stop
-
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
-
-
-
Constructor Detail
-
ThreadConverter
public ThreadConverter()
-
-
Method Detail
-
convert
public String convert(ILoggingEvent event)
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
-
-