|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.syslog.BasicLogger | +--com.protomatter.syslog.MailLog
A logger that sends email.
XML configuration class
Fields inherited from class com.protomatter.syslog.BasicLogger |
formatter, policy, realPolicy |
Constructor Summary | |
MailLog()
You will need to call the configure() method if you use this constructor. |
|
MailLog(java.lang.String workQueueName,
java.lang.String smtpServer)
Create a new mail log that communicates with the given SMTP on port 25. |
|
MailLog(java.lang.String workQueueName,
java.lang.String smtpServer,
int port)
Create a new mail log that communicates with the given SMTP on the given port. |
Method Summary | |
void |
flush()
Flush the given logger's output. |
java.util.Vector |
getBCC()
Get the list of email addresses which appear in the "Bcc:" header. |
java.util.Vector |
getCC()
Get the list of email addresses which appear in the "Cc:" header. |
java.lang.String |
getFromAddress()
Get the email address the message will appear to come from. |
java.lang.String |
getFromName()
Get the human-readable name that the message will appear to be from. |
boolean |
getHTML()
Get the html-email flag. |
int |
getMailPort()
Get the port to use on the mail server. |
java.lang.String |
getMailServer()
Get the hostname of the mail server to use. |
SyslogMailSubjectFormatter |
getSubjectFormatter()
Get the message subject formatter. |
java.util.Vector |
getTo()
Get the list of email addresses which appear in the "To:" header. |
java.lang.String |
getWorkQueue()
Get the name of the work queue that this logger will actually do work in. |
void |
init()
|
void |
log(SyslogMessage message)
Log a message. |
void |
setBCC(java.util.Vector list)
Set the list of email addresses which appear in the "Bcc:" header. |
void |
setCC(java.util.Vector list)
Set the list of email addresses which appear in the "Cc:" header. |
void |
setFromAddress(java.lang.String fromAddress)
Set the email address the message will appear to come from. |
void |
setFromName(java.lang.String fromName)
Set the human-readable name that the message will appear to be from. |
void |
setHTML(boolean html)
Set the html-email flag. |
void |
setMailPort(int port)
Set the port to use on the mail server. |
void |
setMailServer(java.lang.String mailServer)
Set the hostname of the mail server to use. |
void |
setSubjectFormatter(SyslogMailSubjectFormatter subjectFormat)
Set the message subject formatter. |
void |
setTo(java.util.Vector list)
Set the list of email addresses which appear in the "To:" header. |
void |
setWorkQueue(java.lang.String workQueue)
Set the name of the work queue that this logger will actually do work in. |
void |
shutdown()
Closes down the file and prepares for shutdown. |
Methods inherited from class com.protomatter.syslog.BasicLogger |
formatLogEntry, getName, getPolicy, getTextFormatter, isSuspended, mightLog, resetDateFormat, resume, setName, setPolicy, setTextFormatter, shouldLog, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MailLog(java.lang.String workQueueName, java.lang.String smtpServer)
public MailLog(java.lang.String workQueueName, java.lang.String smtpServer, int port)
public MailLog()
Method Detail |
public void setFromName(java.lang.String fromName)
public java.lang.String getFromName()
public void setFromAddress(java.lang.String fromAddress)
public java.lang.String getFromAddress()
public void setMailServer(java.lang.String mailServer)
public java.lang.String getMailServer()
public void setMailPort(int port)
public int getMailPort()
public void setHTML(boolean html)
public boolean getHTML()
public void setTo(java.util.Vector list)
public java.util.Vector getTo()
public void setCC(java.util.Vector list)
public java.util.Vector getCC()
public void setBCC(java.util.Vector list)
public java.util.Vector getBCC()
public void setWorkQueue(java.lang.String workQueue)
public java.lang.String getWorkQueue()
public void setSubjectFormatter(SyslogMailSubjectFormatter subjectFormat)
public SyslogMailSubjectFormatter getSubjectFormatter()
public final void log(SyslogMessage message)
public void shutdown()
public void init()
public void flush()
Syslogger
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |