logahawk.listeners
Class ThreadLogMeta

java.lang.Object
  extended by logahawk.listeners.DefaultLogMeta
      extended by logahawk.listeners.ThreadLogMeta
All Implemented Interfaces:
LogMeta

@Immutable
public class ThreadLogMeta
extends DefaultLogMeta

Adds information about the Thread that executed the log statement.


Field Summary
protected  long id
           
protected  String name
           
protected  int priority
           
 
Constructor Summary
ThreadLogMeta(Severity severity)
          Pulls thread information from Thread.currentThread()
ThreadLogMeta(Severity severity, Date epoch)
          Pulls thread information from Thread.currentThread()
ThreadLogMeta(Severity severity, Date epoch, Thread thread)
           
 
Method Summary
 long getId()
           
 String getName()
           
 int getPriority()
           
 
Methods inherited from class logahawk.listeners.DefaultLogMeta
getEpoch, getSeverity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

id

protected final long id

priority

protected final int priority
Constructor Detail

ThreadLogMeta

public ThreadLogMeta(Severity severity)
Pulls thread information from Thread.currentThread()


ThreadLogMeta

public ThreadLogMeta(Severity severity,
                     Date epoch)
Pulls thread information from Thread.currentThread()


ThreadLogMeta

public ThreadLogMeta(Severity severity,
                     Date epoch,
                     Thread thread)
Method Detail

getName

public String getName()

getId

public long getId()

getPriority

public int getPriority()