| org.apache.log.output.AbstractOutputTarget org.apache.log.output.net.SMTPOutputLogTarget
Constructor Summary | |
public | SMTPOutputLogTarget(Session session, Address[] toAddresses, Address fromAddress, String subject, int maxMsgSize, Formatter formatter) SMTPOutputLogTarget constructor, creates a logkit output target
capable of logging to SMTP (ie. |
Method Summary | |
public synchronized void | close() Closes this log target. | public void | setDebug(boolean flag) Method to enable/disable debugging on the mail session. | protected void | write(String data) Method to write data to the log target. |
SMTPOutputLogTarget | public SMTPOutputLogTarget(Session session, Address[] toAddresses, Address fromAddress, String subject, int maxMsgSize, Formatter formatter)(Code) | | SMTPOutputLogTarget constructor, creates a logkit output target
capable of logging to SMTP (ie. email, email gateway) targets.
Parameters: session - mail session to be used Parameters: toAddresses - addresses logs should be sent to Parameters: fromAddress - address logs say they come from Parameters: subject - subject line logs should use Parameters: maxMsgSize - maximum size of any log mail, in units of log events Parameters: formatter - log formatter to use |
close | public synchronized void close()(Code) | | Closes this log target. Sends currently buffered message, if existing.
|
setDebug | public void setDebug(boolean flag)(Code) | | Method to enable/disable debugging on the mail session.
Parameters: flag - true to enable debugging, false to disable it |
write | protected void write(String data)(Code) | | Method to write data to the log target. Logging data is stored in
an internal buffer until the size limit is reached. When this happens
the data is sent to the SMTP target, and the buffer is reset for
subsequent events.
Parameters: data - logging data to be written to target |
|
|