Class LoggerAppenderMail
LoggerAppenderMail appends log events via email.
This appender does not send individual emails for each logging requests but will collect them in a buffer and send them all in a single email once the appender is closed (i.e. when the script exists). Because of this, it may not appropriate for long running scripts, in which case LoggerAppenderMailEvent might be a better choice.
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.
- LoggerConfigurable
- LoggerAppender
- LoggerAppenderMail
Package: log4php\appenders
License: Apache License, Version 2.0
Version: $Revision: 1337820 $
Link: Appender documentation
Located at appenders/LoggerAppenderMail.php
License: Apache License, Version 2.0
Version: $Revision: 1337820 $
Link: Appender documentation
Located at appenders/LoggerAppenderMail.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
protected
string
|
$from | null |
#
Email address to put in From field of the email. |
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. |
protected
string
|
$body | '' |
#
Buffer which holds the email contents before it is sent. |
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|