|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.codesmarts.log4j.BugReportController
Controller singleton that coordinates bugreport appenders and bug reports
Constructor Summary | |
protected |
BugReportController()
Constructor |
Method Summary | |
void |
addEvent(java.lang.Thread thread,
BugReportAppender appender,
org.apache.log4j.spi.LoggingEvent event)
Log an event by a specific appender for a specific thread |
int |
getBugCount(BugReport report)
Return the number of times this bug has been seen |
static BugReportController |
getInstance()
Get a reference to the BugReportController |
boolean |
isNewBugReport(BugReport report)
Returns true if this is a new bug report |
void |
registerLog(java.lang.Thread thread,
BugReportAppender appender)
Register a thread and an appender with the controller. |
void |
run()
Main Loop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected BugReportController()
Method Detail |
public static BugReportController getInstance()
public void registerLog(java.lang.Thread thread, BugReportAppender appender)
thread
- Thread to watchappender
- Appender writing logs for this threadpublic void addEvent(java.lang.Thread thread, BugReportAppender appender, org.apache.log4j.spi.LoggingEvent event)
thread
- the watched threadappender
- Appender writing logsevent
- the event to trackpublic boolean isNewBugReport(BugReport report)
report
-
public int getBugCount(BugReport report)
report
-
public void run()
run
in interface java.lang.Runnable
Runnable.run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |