Class LoggerAppenderMailEvent
LoggerAppenderMailEvent appends individual log events via email.
This appender is similar to LoggerAppenderMail, except that it sends each each log event in an individual email message at the time when it occurs.
This appender uses a layout.
Configurable parameters:
- to - Email address(es) to which the log will be sent. Multiple email addresses may be specified by separating them with a comma.
- from - Email address which will be used in the From field.
- subject - Subject of the email message.
- smtpHost - Used to override the SMTP server. Only works on Windows.
- port - Used to override the default SMTP server port. Only works on Windows.
- LoggerConfigurable
- LoggerAppender
- LoggerAppenderMailEvent
Package: log4php\appenders
License: Apache License, Version 2.0
Version: $Revision: 1343601 $
Link: Appender documentation
Located at appenders/LoggerAppenderMailEvent.php
License: Apache License, Version 2.0
Version: $Revision: 1343601 $
Link: Appender documentation
Located at appenders/LoggerAppenderMailEvent.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
protected
string
|
$from |
|
#
Email address to put in From field of the email. |
protected
integer
|
$port | 25 |
#
Mail server port (widnows only). |
protected
string
|
$smtpHost |
|
#
Mail server hostname (windows only). |
protected
string
|
$subject | 'Log4php Report' |
#
The subject of the email. |
protected
string
|
$to | null |
#
One or more comma separated email addresses to which to send the email. |
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|