|
||||||||||
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 net.codesmarts.log4j.AbstractEmailBugReportAppender
Base class for appenders that file bug reports as emails to specified addresses
Field Summary |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
AbstractEmailBugReportAppender()
|
Method Summary | |
void |
append(BugReport report)
Append a bug report |
java.lang.String |
getHTMLMessage(BugReport report)
Implementing class decides how to create email message body |
abstract java.lang.String |
getMessage(BugReport report)
Implementing class decides how to create email message body |
abstract java.lang.String |
getSubject(BugReport report)
Implementing class decides how to create email subject |
void |
init()
initialize appender (use this instead of activateOptions) |
void |
setFrom(java.lang.String from)
Set the email address from which to send messages |
void |
setHtml(boolean html)
Set this to true to send messages in HTML format; defaults to false |
void |
setSmtpServer(java.lang.String smtpServer)
Set the SMTP server to use for message delivery |
void |
setSubjectPrepend(java.lang.String subjectPrepend)
Set optional string to prepend to all messages |
void |
setTo(java.lang.String to)
Set comma delimited list of message recipients |
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 |
public AbstractEmailBugReportAppender()
Method Detail |
public abstract java.lang.String getMessage(BugReport report)
report
-
public java.lang.String getHTMLMessage(BugReport report)
report
-
public abstract java.lang.String getSubject(BugReport report)
report
-
public void append(BugReport report)
AbstractBugReportAppender
append
in interface BugReportAppender
append
in class AbstractBugReportAppender
BugReportAppender.append(net.codesmarts.log4j.BugReport)
public void init()
AbstractBugReportAppender
init
in class AbstractBugReportAppender
AbstractBugReportAppender.init()
public void setFrom(java.lang.String from)
from
- The from to set.public void setSmtpServer(java.lang.String smtpServer)
smtpServer
- The smtpServer to set.public void setTo(java.lang.String to)
to
- The to to set.public void setHtml(boolean html)
html
- The html to set.public void setSubjectPrepend(java.lang.String subjectPrepend)
subjectPrepend
- The subjectPrepend to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |