net.codesmarts.log4j
Class ThreadEventLog
java.lang.Object
net.codesmarts.log4j.ThreadEventLog
- public class ThreadEventLog
- extends java.lang.Object
Log of events for a single appender and thread.
- Author:
- Fred McCann
Constructor Summary |
protected |
ThreadEventLog(org.apache.log4j.Priority threadhold,
int thresholdSize,
int maxSize,
int hashMethod)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ThreadEventLog
protected ThreadEventLog(org.apache.log4j.Priority threadhold,
int thresholdSize,
int maxSize,
int hashMethod)
- Constructor
- Parameters:
threadhold
- Threshold required to generate a bug reportthresholdSize
- Threshold size of buffer required to trigger a bug reportmaxSize
- maximum size of bufferhashMethod
- value specifying hash method for creating semiunique keys
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.