net.codesmarts.log4j
Class EmailBugReportAppender

java.lang.Object
  extended byorg.apache.log4j.AppenderSkeleton
      extended bynet.codesmarts.log4j.AbstractBugReportAppender
          extended bynet.codesmarts.log4j.AbstractEmailBugReportAppender
              extended bynet.codesmarts.log4j.EmailBugReportAppender
All Implemented Interfaces:
org.apache.log4j.Appender, BugReportAppender, org.apache.log4j.spi.OptionHandler

public class EmailBugReportAppender
extends AbstractEmailBugReportAppender

Bug Report appender that sends BugReports via email

Author:
Fred McCann

Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
EmailBugReportAppender()
           
 
Method Summary
 java.lang.String getHTMLMessage(BugReport report)
          Implementing class decides how to create email message body
 java.lang.String getMessage(BugReport report)
          Implementing class decides how to create email message body
 java.lang.String getSubject(BugReport report)
          Implementing class decides how to create email subject
 void setHtmlLayout(org.apache.log4j.Layout htmlLayout)
           
 
Methods inherited from class net.codesmarts.log4j.AbstractEmailBugReportAppender
append, init, setFrom, setHtml, setSmtpServer, setSubjectPrepend, setTo
 
Methods inherited from class net.codesmarts.log4j.AbstractBugReportAppender
activateOptions, append, close, doAppend, getHashingMethod, getHashMethod, getMaxSize, getThresholdPriority, getThresholdSize, isReportDuplicates, requiresLayout, setHashingMethod, setLayout, setMaxSize, setReportDuplicates, setThresholdPriority, setThresholdSize
 
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

EmailBugReportAppender

public EmailBugReportAppender()
Method Detail

getMessage

public java.lang.String getMessage(BugReport report)
Description copied from class: AbstractEmailBugReportAppender
Implementing class decides how to create email message body

Specified by:
getMessage in class AbstractEmailBugReportAppender
Parameters:
report -
Returns:
See Also:
AbstractEmailBugReportAppender.getMessage(net.codesmarts.log4j.BugReport)

getHTMLMessage

public java.lang.String getHTMLMessage(BugReport report)
Description copied from class: AbstractEmailBugReportAppender
Implementing class decides how to create email message body

Overrides:
getHTMLMessage in class AbstractEmailBugReportAppender
Parameters:
report -
Returns:
See Also:
AbstractEmailBugReportAppender.getHTMLMessage(net.codesmarts.log4j.BugReport)

getSubject

public java.lang.String getSubject(BugReport report)
Description copied from class: AbstractEmailBugReportAppender
Implementing class decides how to create email subject

Specified by:
getSubject in class AbstractEmailBugReportAppender
Parameters:
report -
Returns:
See Also:
AbstractEmailBugReportAppender.getSubject(net.codesmarts.log4j.BugReport)

setHtmlLayout

public void setHtmlLayout(org.apache.log4j.Layout htmlLayout)
Parameters:
htmlLayout - The htmlLayout to set.


Copyright © 2005 CodeSmarts. All Rights Reserved.