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 core/log4php/appenders/LoggerAppenderMail.php
License: Apache License, Version 2.0
Version: $Revision: 1337820 $
Link: Appender documentation
Located at core/log4php/appenders/LoggerAppenderMail.php
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. |
#
null
|
protected
string
|
$subject
The subject of the email. |
#
'Log4php Report'
|
protected
string
|
$to
One or more comma separated email addresses to which to send the email. |
#
null
|
protected
boolean
|
$dry
Indiciates whether this appender should run in dry mode. |
#
false
|
protected
string
|
$body
Buffer which holds the email contents before it is sent. |
#
''
|
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|