logahawk.listeners
Class DefaultLogMetaProvider
java.lang.Object
logahawk.listeners.DefaultLogMetaProvider
- All Implemented Interfaces:
- LogMetaProvider
- Direct Known Subclasses:
- ThreadLogMetaProvider
public class DefaultLogMetaProvider
- extends Object
- implements LogMetaProvider
Implements the LogMetaProvider
interface by returning DefaultLogMeta
instances.
Field Summary |
protected long |
offsetMs
This value will be added to from the current time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offsetMs
protected final long offsetMs
- This value will be added to from the current time. A positive value will move the current time into the future; a
negative value will move it into the past.
DefaultLogMetaProvider
public DefaultLogMetaProvider()
DefaultLogMetaProvider
public DefaultLogMetaProvider(long offsetMs)
create
public LogMeta create(Severity severity)
- Specified by:
create
in interface LogMetaProvider
getCurrentDate
protected Date getCurrentDate()
- Returns the current date shifted by
offsetMs
;