Implements interfaces:
LoggerConfiguratorPhp class
This class allows configuration of log4php through an external file that deliver a PHP array in return.
An example for this configurator is:
require_once dirname(__FILE__).'/../../main/php/Logger.php';
$logger->info("Hello World!");
Which includes the following snippet:
return array(
'threshold' => 'ALL',
'rootLogger' => array(
'level' => 'INFO',
'appenders' => array('default'),
),
'loggers' => array(
'dev' => array(
'level' => 'DEBUG',
'appenders' => array('default'),
),
),
'appenders' => array(
'default' => array(
'class' => 'LoggerAppenderEcho',
'layout' => array(
'class' => 'LoggerLayoutPattern',
'conversionPattern' => "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
),
),
),
);
Located in /configurators/LoggerConfiguratorPhp.php (line 39)