|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.AppenderSkeleton er.extensions.ERXMailAppender
Basic log4j Mail Message Appender
Used for logging log events that will eventually be emailed
out. Logs events using WOMailDelivery
.
Manditory Fields:
TOAddresses - comma seperated list of email addresses to send the log event
message to.
FromAddress - Who the message is from, if left blank then DomainName is a
manditory field.
Optional Fields:
BccAddresses - comma separated list of email address to bcc on the email
CcAddresses - comma separated list of email address to cc on the email
ReplyTo - reply to address
DomainName - When generating a from email address, used for the bit after the
Field Summary | |
protected String |
bccAddresses
holds the bcc addresses |
protected String |
ccAddresses
holds the cc addresses |
protected String |
computedFromAddress
holds the computed from address |
protected boolean |
conditionsChecked
holds the flag if all the conditions for logging have been checked |
protected String |
domainName
holds the domain |
protected String |
exceptionPageName
holds the exception page name |
protected String |
formatAsError
|
protected String |
fromAddress
holds the from address |
protected String |
hostName
holds the host name |
protected String |
qualifier
holds the qualifier |
protected EOQualifier |
realQualifier
holds the qualifier |
protected String |
replyTo
holds the reply to address |
protected String |
title
holds the title |
protected String |
titleIncludesApplicationName
|
protected String |
titleIncludesPriorityLevel
|
protected String |
toAddresses
holds the to addresses |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
ERXMailAppender()
Public constructor. |
Method Summary | |
void |
append(LoggingEvent event)
Entry point for logging an event. |
String |
bccAddresses()
Gets the bcc addresses as a String. |
NSArray |
bccAddressesAsArray()
Gets the bcc addresses as an array. |
String |
ccAddresses()
Gets the cc addresses as a String. |
NSArray |
ccAddressesAsArray()
Gets the cc addresses as an array. |
protected boolean |
checkConditions()
Used to determine if the system is ready to log events with MERCMailDelivery. |
void |
close()
When closed set the state to closed. |
NSMutableDictionary |
composeExceptionPageDictionary(LoggingEvent event)
In case we generate a HTML page, we construct a dictionary with the entries that is later pushed into the page. |
String |
composeMessage(LoggingEvent event)
Where the actual logging event is processed and a mail message is generated. |
String |
composeTitle(LoggingEvent event)
|
String |
computedFromAddress()
Gets the from address for the appender. |
String |
formatAsError()
|
boolean |
formatAsErrorAsBoolean()
|
String |
getDomainName()
Gets the domain name. |
String |
getExceptionPageName()
Gets the exception page name. |
String |
getFromAddress()
Gets the from address set by the user. |
String |
getHostName()
Gets the host name. |
String |
getQualifier()
Gets the qualifier as a string. |
String |
getReplyTo()
Gets the reply to address set by the user. |
String |
getTitle()
Gets the title. |
String |
getToAddresses()
Gets the to addresses as a string. |
EOQualifier |
realQualifier()
Gets the qualifier. |
boolean |
requiresLayout()
The mail message appender does require a layout. |
void |
setBccAddresses(String bccAddresses)
Sets the bcc addresses as a string. |
void |
setCcAddresses(String ccAddresses)
Sets the to addresses as a string. |
void |
setDomainName(String domainName)
Sets the domain name. |
void |
setExceptionPageName(String exceptionPageName)
Sets the title. |
void |
setFormatAsError(String value)
|
void |
setFromAddress(String fromAddress)
Sets the from address. |
void |
setHostName(String hostName)
Sets the host name to use for the given appender. |
void |
setQualifier(String qualifier)
Sets the qualifier as a string. |
void |
setReplyTo(String replyTo)
Sets the reply to address. |
void |
setTitle(String title)
Sets the title. |
void |
setTitleIncludesApplicationName(String value)
|
void |
setTitleIncludesPriorityLevel(String value)
|
void |
setToAddresses(String toAddresses)
Sets the to addresses as a string. |
void |
subAppend(LoggingEvent event)
Where the actual logging event is processed and a mail message is generated. |
String |
titleIncludesApplicationName()
|
boolean |
titleIncludesApplicationNameAsBoolean()
|
String |
titleIncludesPriorityLevel()
|
boolean |
titleIncludesPriorityLevelAsBoolean()
|
NSArray |
toAddressesAsArray()
Gets the to addresses as an array. |
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 |
Field Detail |
protected String fromAddress
protected String computedFromAddress
protected String replyTo
protected String toAddresses
protected String ccAddresses
protected String bccAddresses
protected String domainName
protected String qualifier
protected EOQualifier realQualifier
protected String title
protected String exceptionPageName
protected String hostName
protected String formatAsError
protected String titleIncludesPriorityLevel
protected String titleIncludesApplicationName
protected boolean conditionsChecked
Constructor Detail |
public ERXMailAppender()
Method Detail |
public boolean requiresLayout()
public void close()
public String getQualifier()
public void setQualifier(String qualifier)
public EOQualifier realQualifier()
public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- to use when generating emails.public String getReplyTo()
public void setReplyTo(String replyTo)
public String computedFromAddress()
public String getToAddresses()
public void setToAddresses(String toAddresses)
toAddresses
- comma separated array of email addressespublic NSArray toAddressesAsArray()
public void setCcAddresses(String ccAddresses)
ccAddresses
- comma separated array of email addressespublic String ccAddresses()
public NSArray ccAddressesAsArray()
public void setBccAddresses(String bccAddresses)
bccAddresses
- comma separated array of email addressespublic String bccAddresses()
public NSArray bccAddressesAsArray()
public String getExceptionPageName()
public void setExceptionPageName(String exceptionPageName)
public String getTitle()
public void setTitle(String title)
title
- of the mail messagepublic String getHostName()
public void setHostName(String hostName)
hostName
- for the appender.public String getDomainName()
public void setDomainName(String domainName)
domainName
- new domain namepublic String formatAsError()
public void setFormatAsError(String value)
public boolean formatAsErrorAsBoolean()
public String titleIncludesPriorityLevel()
public void setTitleIncludesPriorityLevel(String value)
public boolean titleIncludesPriorityLevelAsBoolean()
public String titleIncludesApplicationName()
public void setTitleIncludesApplicationName(String value)
public boolean titleIncludesApplicationNameAsBoolean()
protected boolean checkConditions()
public void append(LoggingEvent event)
event
- current logging eventpublic String composeTitle(LoggingEvent event)
public NSMutableDictionary composeExceptionPageDictionary(LoggingEvent event)
event
- logging eventpublic String composeMessage(LoggingEvent event)
event
- logging eventpublic void subAppend(LoggingEvent event)
event
- logging event
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |