|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton net.codesmarts.log4j.AbstractBugReportAppender
Base class for BugReport Appenders
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
AbstractBugReportAppender()
|
Method Summary | |
void |
activateOptions()
|
abstract void |
append(BugReport report)
Append a bug report |
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
This method does nothing, use append(BugReport) |
void |
close()
|
void |
doAppend(org.apache.log4j.spi.LoggingEvent event)
Append an logging event |
java.lang.String |
getHashingMethod()
Get the hash method specified by this appender |
int |
getHashMethod()
Get the hash method specified by this appender |
int |
getMaxSize()
The maximum number of logging events allowed in a single report. |
org.apache.log4j.Priority |
getThresholdPriority()
The threshold priority is the priority required to generate a bug report. |
int |
getThresholdSize()
For short running threads (like serlvet requets/reponse handlers), a log report is generated when the application thread dies. |
abstract void |
init()
initialize appender (use this instead of activateOptions) |
boolean |
isReportDuplicates()
This returns true if this appender is configured to file duplicate reports. |
boolean |
requiresLayout()
|
void |
setHashingMethod(java.lang.String m)
Set the hash method for creating semiunique keys. |
void |
setLayout(org.apache.log4j.Layout layout)
|
void |
setMaxSize(int size)
Set the maximum size of the log buffer |
void |
setReportDuplicates(boolean reportDuplicates)
Set the flag to report duplicate Bug Reports |
void |
setThresholdPriority(org.apache.log4j.Priority thresholdPriority)
Bug Reports are triggered when a logging event of this priority is detected |
void |
setThresholdSize(int size)
Set the threadhold size of the event buffer |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
addFilter, clearFilters, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setName, setThreshold |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractBugReportAppender()
Method Detail |
public int getMaxSize()
getMaxSize
in interface BugReportAppender
public void setMaxSize(int size)
size
- The _maxSize to set.public org.apache.log4j.Priority getThresholdPriority()
getThresholdPriority
in interface BugReportAppender
public void setThresholdPriority(org.apache.log4j.Priority thresholdPriority)
public int getThresholdSize()
getThresholdSize
in interface BugReportAppender
public void setThresholdSize(int size)
size
- The _thresholdSize to set.public final void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
OptionHandler.activateOptions()
public void doAppend(org.apache.log4j.spi.LoggingEvent event)
doAppend
in interface org.apache.log4j.Appender
AppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent)
public abstract void append(BugReport report)
append
in interface BugReportAppender
public abstract void init()
protected final void append(org.apache.log4j.spi.LoggingEvent event)
public void close()
close
in interface org.apache.log4j.Appender
Appender.close()
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
Appender.requiresLayout()
public void setLayout(org.apache.log4j.Layout layout)
setLayout
in interface org.apache.log4j.Appender
Appender.setLayout(org.apache.log4j.Layout)
public boolean isReportDuplicates()
isReportDuplicates
in interface BugReportAppender
public void setReportDuplicates(boolean reportDuplicates)
reportDuplicates
- The reportDuplicates to set.public void setHashingMethod(java.lang.String m)
public java.lang.String getHashingMethod()
public int getHashMethod()
getHashMethod
in interface BugReportAppender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |