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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimestampAction
public TimestampAction()
begin
public void begin(InterpretationContext ec,
java.lang.String name,
org.xml.sax.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,
java.lang.String name)
throws ActionException
- Specified by:
end
in class Action
- Throws:
ActionException