LoggerAppenderEchoLoggerAppenderEcho writes logging events using PHP's echo() function. Echo outputs may be buffered. 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 LoggerAppenderEcho using the TTCC layout with htmlLineBreaks turned on.
<configuration xmlns="http://logging.apache.org/log4php/">
<appender name="default" class="LoggerAppenderEcho">
<layout class="LoggerLayoutSimple" />
<param name="htmlLineBreaks" value="true" />
</appender>
<root>
<appender_ref ref="default" />
</root>
</configuration>
array(
'appenders' => array(
'default' => array(
'class' => 'LoggerAppenderEcho',
'layout' => array(
'class' => 'LoggerLayoutSimple',
),
'params' => array(
'htmlLineBreaks' => 'true',
),
),
),
'rootLogger' => array(
'appenders' => array('default'),
),
);
|