## LoggerAppenderPhp

`LoggerAppenderPhp` 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:

- `E_USER_NOTICE` when the event's level is equal to or less than INFO
- `E_USER_WARNING` when the event's level is equal to WARN
- `E_USER_ERROR` when the event's level is equal to or greater than ERROR

### Layout

This appender requires a layout. If no layout is specified in configuration, `LoggerLayoutSimple` will be used by default.

### Parameters

This appender has no configurable parameters.

### Examples

- XML
- PHP

    <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'),
        ),
    );