logahawk.listeners
Class DefaultLogMetaProvider

java.lang.Object
  extended by 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.
 
Constructor Summary
DefaultLogMetaProvider()
           
DefaultLogMetaProvider(long offsetMs)
           
 
Method Summary
 LogMeta create(Severity severity)
           
protected  Date getCurrentDate()
          Returns the current date shifted by offsetMs;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

DefaultLogMetaProvider

public DefaultLogMetaProvider()

DefaultLogMetaProvider

public DefaultLogMetaProvider(long offsetMs)
Method Detail

create

public LogMeta create(Severity severity)
Specified by:
create in interface LogMetaProvider

getCurrentDate

protected Date getCurrentDate()
Returns the current date shifted by offsetMs;