Hi,

at first glance, I would think the same. I will need to try it out. However
- please have in mind that the php configuration is still experimental.
Maybe you are running into a bug here. Did you try the old fashioned way
with xml or property file?

Christian

On Wed, Mar 3, 2010 at 1:44 PM, Florian Platzer <[email protected]>wrote:

> I created the following log4php configuration file and wondered, why a
>
> $logger->debug('xyz')
>
> on ldap-logger created an formatted log4php-output on the webpage:
>
> return array(
>                        'rootLogger' => array(
>                                'level' => 'FATAL',
>                                'appenders' => array('echo'),
>                        ),
>                        'loggers' => array(
>                                'ldap' => array(
>                                        'level' => 'DEBUG',
>                                        'appenders' => array('email'),
>                                ),
>                        ),
>                        'appenders' => array(
>                                'echo' => 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",
>                                        ),
>                                ),
>                                'email' => array(
>                                        'class' =>
> 'LoggerAppenderMailEvent',
>                                        'layout' => array(
>                                                'class' =>
> 'LoggerLayoutPattern',
>                                                'conversionPattern' =>
> "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
>                                        ),
>                                        'from' => '[email protected]',
>                                        'to' => '[email protected]',
>                                        'subject' => 'Error',
>                                        'smtpHost' => '0.0.0.0',
>                                ),
>                        ),
>                );
>
>
> In my understanding, the rootLogger only should log in case of FATAL
> errors!?
>
> Florian
>
>

Reply via email to