Class DateTokenConverter<E>
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<E>
ch.qos.logback.core.rolling.helper.DateTokenConverter<E>
- All Implemented Interfaces:
MonoTypedConverter, ContextAware, LifeCycle
Returns a date formatted by SimpleDateFormatter.
- Author:
- Ceki Gülcü
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThe conversion word/character with which this converter is registered.static final StringFields inherited from class DynamicConverter
started -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe convert method is responsible for extracting data from the event and returning a formatted string representation.Return the date pattern.booleanbooleanvoidstart()Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.toRegex()Methods inherited from class DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stopMethods inherited from class FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Field Details
-
CONVERTER_KEY
The conversion word/character with which this converter is registered.- See Also:
-
AUXILIARY_TOKEN
- See Also:
-
DEFAULT_DATE_PATTERN
- See Also:
-
-
Constructor Details
-
DateTokenConverter
public DateTokenConverter()
-
-
Method Details
-
start
Description copied from class:DynamicConverterComponents that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient.- Specified by:
startin interfaceLifeCycle- Overrides:
startin classDynamicConverter<E>
-
convert
-
convert
-
convert
Description copied from class:ConverterThe convert method is responsible for extracting data from the event and returning a formatted string representation. -
getDatePattern
Return the date pattern. -
getZoneId
-
isApplicable
- Specified by:
isApplicablein interfaceMonoTypedConverter
-
toRegex
-
isPrimary
-