LoggerAppenderNull

LoggerAppenderNull ignores all logging requests; it never outputs a message to any device.

Layout

This appender does not require a layout.

Parameters

This appender does not have any configurable parameters.

Examples

  • XML
  • PHP
<configuration xmlns="http://logging.apache.org/log4php/">
    <appender name="default" class="LoggerAppenderNull" />
    <root>
        <appender_ref ref="default" />
    </root>
</configuration>
array(
    'appenders' => array(
        'default' => array(
            'class' => 'LoggerAppenderNull',
        ),
    ),
    'rootLogger' => array(
        'appenders' => array('default'),
    ),
);