public class ERXMailAppender
extends org.apache.log4j.AppenderSkeleton
WOMailDelivery
.Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
ERXMailAppender()
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.log4j.spi.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(org.apache.log4j.spi.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(org.apache.log4j.spi.LoggingEvent event)
Where the actual logging event is processed and a
mail message is generated.
|
String |
composeTitle(org.apache.log4j.spi.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(org.apache.log4j.spi.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.
|
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
public boolean requiresLayout()
requiresLayout
in interface org.apache.log4j.Appender
requiresLayout
in class org.apache.log4j.AppenderSkeleton
public void close()
close
in interface org.apache.log4j.Appender
close
in class org.apache.log4j.AppenderSkeleton
public String getQualifier()
public void setQualifier(String qualifier)
qualifier
- the qualifier as string.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)
replyTo
- to address to use when generating emails.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)
exceptionPageName
- title of the mail messagepublic 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(org.apache.log4j.spi.LoggingEvent event)
append
in class org.apache.log4j.AppenderSkeleton
event
- current logging eventpublic String composeTitle(org.apache.log4j.spi.LoggingEvent event)
public NSMutableDictionary composeExceptionPageDictionary(org.apache.log4j.spi.LoggingEvent event)
event
- logging eventpublic String composeMessage(org.apache.log4j.spi.LoggingEvent event)
event
- logging eventpublic void subAppend(org.apache.log4j.spi.LoggingEvent event)
event
- logging eventCopyright © 2002 – 2024 Project Wonder.