org.apache.log.output.net
public class SMTPOutputLogTarget extends AbstractOutputTarget
Since: 1.1.0
Version: CVS $Id: SMTPOutputLogTarget.java,v 1.6 2003/02/09 23:33:25 mcconnell Exp $
Constructor Summary | |
---|---|
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. email, email gateway) targets.
|
Method Summary | |
---|---|
void | close()
Closes this log target. |
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. |
Parameters: session mail session to be used toAddresses addresses logs should be sent to fromAddress address logs say they come from subject subject line logs should use maxMsgSize maximum size of any log mail, in units of log events formatter log formatter to use
Parameters: flag true to enable debugging, false to disable it
Parameters: data logging data to be written to target