org.apache.log.output.net
public class SMTPOutputLogTarget extends AbstractOutputTarget
m_formatter| Constructor and Description |
|---|
SMTPOutputLogTarget(javax.mail.Session session,
javax.mail.Address[] toAddresses,
javax.mail.Address fromAddress,
java.lang.String subject,
int maxMsgSize,
Formatter formatter)
SMTPOutputLogTarget constructor, creates a logkit output target
capable of logging to SMTP (ie.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this log target.
|
void |
setDebug(boolean flag)
Method to enable/disable debugging on the mail session.
|
protected void |
write(java.lang.String data)
Method to write data to the log target.
|
doProcessEvent, getFormatter, open, output, setFormattererror, getErrorHandler, isOpen, processEvent, setErrorHandlerpublic SMTPOutputLogTarget(javax.mail.Session session,
javax.mail.Address[] toAddresses,
javax.mail.Address fromAddress,
java.lang.String subject,
int maxMsgSize,
Formatter formatter)
session - mail session to be usedtoAddresses - addresses logs should be sent tofromAddress - address logs say they come fromsubject - subject line logs should usemaxMsgSize - maximum size of any log mail, in units of log eventsformatter - log formatter to useprotected void write(java.lang.String data)
write in class AbstractOutputTargetdata - logging data to be written to targetpublic void close()
close in class AbstractOutputTargetpublic void setDebug(boolean flag)
flag - true to enable debugging, false to disable it