com.bugcollect.log4j
Class Appender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by com.bugcollect.log4j.Appender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class Appender
extends org.apache.log4j.AppenderSkeleton

The BugCollect Appender. Add this appender to your log4j configuration to enable bug report colection at bugcollect.com


Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
Appender()
           
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent event)
          Submits the LoggingEvent to bugcollect.com The report is constructed from the message and throwable information in the LoggingEvent.
protected  com.bugcollect.ReportingManager buildReportingManager()
           
 void close()
          log4j infrastructure method.
 com.bugcollect.ReportingManager getReportingManager()
          Gets the ReportingManager used to submit reports.
 boolean requiresLayout()
          log4j infrastructure method.
 void setApplicationName(java.lang.String value)
          Sets the application name used to authenticate with bugcollect.com
 void setApplicationPassword(java.lang.String value)
          Sets the password used to authenticate with bugcollect.com
 void setReportingManager(com.bugcollect.ReportingManager value)
          Sets the com.bugcolect.ReportingManager object used to submit reports.
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Appender

public Appender()
Method Detail

setApplicationName

public void setApplicationName(java.lang.String value)
Sets the application name used to authenticate with bugcollect.com


setApplicationPassword

public void setApplicationPassword(java.lang.String value)
Sets the password used to authenticate with bugcollect.com


buildReportingManager

protected com.bugcollect.ReportingManager buildReportingManager()

setReportingManager

public void setReportingManager(com.bugcollect.ReportingManager value)
Sets the com.bugcolect.ReportingManager object used to submit reports.

Parameters:
value -

getReportingManager

public com.bugcollect.ReportingManager getReportingManager()
Gets the ReportingManager used to submit reports. If not set explicitly, the ReportingManager is constructed at the moment the first report is submitted, or when this method invoked. The default ReportingManager will use the application name and password set on thsi Appender.


append

protected void append(org.apache.log4j.spi.LoggingEvent event)
Submits the LoggingEvent to bugcollect.com The report is constructed from the message and throwable information in the LoggingEvent.

Specified by:
append in class org.apache.log4j.AppenderSkeleton

close

public void close()
log4j infrastructure method. This Appender doesn't do anything on close.


requiresLayout

public boolean requiresLayout()
log4j infrastructure method. The BugCollect appender does not require a layout.