LoggerAppenderPhpLoggerAppenderPhp logs events by creating a PHP user-level message using the PHP's trigger_error()function. The message type depends on the event's severity level:
LayoutThis appender requires a layout. If no layout is specified in configuration, LoggerLayoutSimple will be used by default. Examples
<configuration xmlns="http://logging.apache.org/log4php/"> <appender name="default" class="LoggerAppenderPhp"> <layout class="LoggerLayoutSimple" /> </appender> <root> <appender_ref ref="default" /> </root> </configuration> array( 'appenders' => array( 'default' => array( 'class' => 'LoggerAppenderPhp', 'layout' => array( 'class' => 'LoggerLayoutSimple', ), ), ), 'rootLogger' => array( 'appenders' => array('default'), ), ); |