LoggerAppenderMailEventLoggerAppenderMailEvent 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. LayoutThis appender requires a layout. If no layout is specified in configuration, LoggerLayoutSimple will be used by default. ParametersThe following parameters are available:
ExamplesThis example shows how to configure LoggerAppenderMailEvent to send the log to two email addresses.
<configuration xmlns="http://logging.apache.org/log4php/"> <appender name="default" class="LoggerAppenderMailEvent"> <layout class="LoggerLayoutSimple" /> <param name="to" value="foo@example.com,baz@example.com" /> <param name="from" value="logger@example.com" /> </appender> <root> <appender_ref ref="default" /> </root> </configuration> array( 'appenders' => array( 'default' => array( 'class' => 'LoggerAppenderMailEvent', 'layout' => array( 'class' => 'LoggerLayoutSimple', ), 'params' => array( 'to' => 'foo@example.com,baz@example.com', 'from' => 'logger@example.com' ), ), ), 'rootLogger' => array( 'appenders' => array('default'), ), ); |