Top Fields Constructors Methods
ch.qos.logback.classic.pattern

public Class DateConverter

extends ClassicConverter
Class Inheritance
Imports
java.time.ZoneId, java.util.List, .Locale, ch.qos.logback.classic.spi.ILoggingEvent, ch.qos.logback.core.CoreConstants, ch.qos.logback.core.util.CachingDateFormatter

Field Summary

Modifier and TypeField and Description
pack-priv CachingDateFormatter
pack-priv long
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
convert(ILoggingEvent le)

Implements abstract ch.qos.logback.core.pattern.Converter.convert.

The convert method is responsible for extracting data from the event and storing it for later use by the write method.
public void
start()

Overrides ch.qos.logback.core.pattern.DynamicConverter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.

Field Detail

cachingDateFormatterback to summary
pack-priv CachingDateFormatter cachingDateFormatter
lastTimestampback to summary
pack-priv long lastTimestamp
timestampStrCacheback to summary
pack-priv String timestampStrCache

Constructor Detail

DateConverterback to summary
public DateConverter()

Method Detail

convertback to summary
public String convert(ILoggingEvent le)

Implements abstract ch.qos.logback.core.pattern.Converter.convert.

Doc from ch.qos.logback.core.pattern.Converter.convert.

The convert method is responsible for extracting data from the event and storing it for later use by the write method.

startback to summary
public void start()

Overrides ch.qos.logback.core.pattern.DynamicConverter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Doc from ch.qos.logback.core.pattern.DynamicConverter.start.

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.