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
Modifier and TypeFieldDescriptionstatic final String
static final String
The conversion word/character with which this converter is registered.static final String
Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter
started
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe convert method is responsible for extracting data from the event and storing it for later use by the write method.Return the date pattern.boolean
boolean
void
start()
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 ch.qos.logback.core.pattern.DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, stop
Methods inherited from class ch.qos.logback.core.pattern.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:DynamicConverter
Components 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:
start
in interfaceLifeCycle
- Overrides:
start
in classDynamicConverter<E>
-
convert
-
convert
-
convert
Description copied from class:Converter
The convert method is responsible for extracting data from the event and storing it for later use by the write method. -
getDatePattern
Return the date pattern. -
getZoneId
-
isApplicable
- Specified by:
isApplicable
in interfaceMonoTypedConverter
-
toRegex
-
isPrimary
-