net.codesmarts.log4j
Class ThreadEventLog

java.lang.Object
  extended bynet.codesmarts.log4j.ThreadEventLog

public class ThreadEventLog
extends java.lang.Object

Log of events for a single appender and thread.

Author:
Fred McCann

Field Summary
static boolean FULL_REPORT
           
static boolean INCREMENTAL_REPORT
           
 
Constructor Summary
protected ThreadEventLog(org.apache.log4j.Priority threadhold, int thresholdSize, int maxSize, int hashMethod)
          Constructor
 
Method Summary
protected  void addEvent(org.apache.log4j.spi.LoggingEvent event)
          Add event to the log
protected  BugReport generateBugReport(boolean all)
          Generate a bug report from this list
protected  boolean isTriggered()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FULL_REPORT

public static final boolean FULL_REPORT
See Also:
Constant Field Values

INCREMENTAL_REPORT

public static final boolean INCREMENTAL_REPORT
See Also:
Constant Field Values
Constructor Detail

ThreadEventLog

protected ThreadEventLog(org.apache.log4j.Priority threadhold,
                         int thresholdSize,
                         int maxSize,
                         int hashMethod)
Constructor

Parameters:
threadhold - Threshold required to generate a bug report
thresholdSize - Threshold size of buffer required to trigger a bug report
maxSize - maximum size of buffer
hashMethod - value specifying hash method for creating semiunique keys
Method Detail

addEvent

protected void addEvent(org.apache.log4j.spi.LoggingEvent event)
Add event to the log

Parameters:
event -

generateBugReport

protected BugReport generateBugReport(boolean all)
Generate a bug report from this list

Parameters:
all - set to true to dump all events
Returns:
BugReport object if a report can be filed, else returns null

isTriggered

protected boolean isTriggered()
Returns:
Returns the _triggered.


Copyright © 2005 CodeSmarts. All Rights Reserved.