Module ch.qos.logback.classic
Package ch.qos.logback.classic.pattern
Class LocalSequenceNumberConverter
- 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.LocalSequenceNumberConverter
-
- All Implemented Interfaces:
ContextAware,LifeCycle
public class LocalSequenceNumberConverter extends ClassicConverter
A converters based on a locally incremented sequence number. The sequence number is initialized to the number of milliseconds elapsed since 1970-01-01 until this instance is initialized.EXPERIMENTAL This class is experimental and may be removed in the future.
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
-
Constructor Summary
Constructors Constructor Description LocalSequenceNumberConverter()
-
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
-
LocalSequenceNumberConverter
public LocalSequenceNumberConverter()
-
-
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
-
-