[ 
https://issues.apache.org/jira/browse/LOG4PHP-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124965#comment-14124965
 ] 

Jalen Lyu commented on LOG4PHP-221:
-----------------------------------

With the bellow conf,

<?php
return array(
        'appenders' => array(
                'default' => array(
                           ...
                ),
        ),
        'rootLogger' => array(
                'level' => 'error',
                'appenders' => array(
                        'default',
                ),
        ),
        'foo' => array(
                'level' => 'info',
        ),
);

The logger named foo use the root logger as its parent. And it's level is info.

As there is no appender conf for logger foo, foo's log message will be 
transfered to the root logger.
But the level of the root loger is error. As a result, all the log message with 
level bellow error will be abandoned.

> logger cannot inherit parent's appender without log level
> ---------------------------------------------------------
>
>                 Key: LOG4PHP-221
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-221
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.3.0
>         Environment: Ubuntu
>            Reporter: Jalen Lyu
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to