Top Description Fields Constructors Methods
ch.qos.logback.core.joran.action

public Class TimestampAction

extends BaseModelAction
Class Inheritance
Imports
org.xml.sax.Attributes, ch.qos.logback.core.joran.spi.SaxEventInterpretationContext, ch.qos.logback.core.model.Model, .TimestampModel, ch.qos.logback.core.util.OptionHelper

Given a key and a date-and-time pattern, puts a property to the context, with the specified key and value equal to the current time in the format corresponding to the specified date-and-time pattern.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
Inherited from ch.qos.logback.core.joran.action.BaseModelAction:
currentModelinErrorparentModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Model
protected boolean
validPreconditions(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)

Overrides ch.qos.logback.core.joran.action.BaseModelAction.validPreconditions.

Validate preconditions of this action.
Inherited from ch.qos.logback.core.joran.action.BaseModelAction:
beginbodyend

Field Detail

DATE_PATTERN_ATTRIBUTEback to summary
public static final String DATE_PATTERN_ATTRIBUTE
TIME_REFERENCE_ATTRIBUTEback to summary
public static final String TIME_REFERENCE_ATTRIBUTE

Constructor Detail

TimestampActionback to summary
public TimestampAction()

Method Detail

buildCurrentModelback to summary
protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)

Implements abstract ch.qos.logback.core.joran.action.BaseModelAction.buildCurrentModel.

Annotations
@Override
validPreconditionsback to summary
protected boolean validPreconditions(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)

Overrides ch.qos.logback.core.joran.action.BaseModelAction.validPreconditions.

Doc from ch.qos.logback.core.joran.action.BaseModelAction.validPreconditions.

Validate preconditions of this action. By default, true is returned. Subclasses should override appropriately.

Annotations
@Override