LoggerAppenderConsoleLoggerAppenderConsole writes logging events to the php://stdout or the php://stderr stream, the former being the default target. 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 LoggerAppenderConsole.
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderConsole">
<layout class="LoggerLayoutSimple" />
</appender>
<root>
<appender_ref ref="default" />
</root>
</configuration>
array(
'appenders' => array(
'default' => array(
'class' => 'LoggerAppenderConsole',
'layout' => array(
'class' => 'LoggerLayoutSimple',
),
),
),
'rootLogger' => array(
'appenders' => array('default'),
),
);
|