ch.qos.logback.core.joran.action
Class TimestampAction
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
ch.qos.logback.core.joran.action.TimestampAction
- All Implemented Interfaces:
- ContextAware
public class TimestampAction
- extends Action
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ü
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
TimestampAction
public TimestampAction()
begin
public void begin(InterpretationContext ec,
String name,
Attributes attributes)
throws ActionException
- Description copied from class:
Action
- Called when the parser encounters an element matching a
Pattern
.
- Specified by:
begin
in class Action
- Throws:
ActionException
end
public void end(InterpretationContext ec,
String name)
throws ActionException
- Specified by:
end
in class Action
- Throws:
ActionException
Copyright © 2005-2013 QOS.ch. All Rights Reserved.