You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "John (JIRA)" <ji...@apache.org> on 2012/06/05 22:55:22 UTC

[jira] [Created] (LOG4PHP-181) The default configurator does not populate the LoggerAppenderPool

John created LOG4PHP-181:
----------------------------

             Summary: The default configurator does not populate the LoggerAppenderPool
                 Key: LOG4PHP-181
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-181
             Project: Log4php
          Issue Type: Bug
          Components: Code
    Affects Versions: 2.2.1
            Reporter: John
             Fix For: 2.3.0


Method configureAppender() of the class LoggerConfiguratorDefault, should end with:
LoggerAppenderPool::add($appender);

As this statement should work:
$appender = LoggerAppenderPool::get('file');

According to the documentation within the LoggerAppenderPool.php file
 * Pool implmentation for LoggerAppender instances.
 * 
 * The pool is used when configuring log4php. First all appender instances 
 * are created in the pool. Afterward, they are linked to loggers, each 
 * appender can be linked to multiple loggers. This makes sure duplicate 
 * appenders are not created.

Currently the pool remains empty, making it impossible to add an appender to a logger at a later stage.
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (LOG4PHP-181) The default configurator does not populate the LoggerAppenderPool

Posted by "Ivan Habunek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4PHP-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Habunek updated LOG4PHP-181:
---------------------------------

    Fix Version/s:     (was: 2.3.0)
    
> The default configurator does not populate the LoggerAppenderPool
> -----------------------------------------------------------------
>
>                 Key: LOG4PHP-181
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-181
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.2.1
>            Reporter: John
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Method configureAppender() of the class LoggerConfiguratorDefault, should end with:
> LoggerAppenderPool::add($appender);
> As this statement should work:
> $appender = LoggerAppenderPool::get('file');
> According to the documentation within the LoggerAppenderPool.php file
>  * Pool implmentation for LoggerAppender instances.
>  * 
>  * The pool is used when configuring log4php. First all appender instances 
>  * are created in the pool. Afterward, they are linked to loggers, each 
>  * appender can be linked to multiple loggers. This makes sure duplicate 
>  * appenders are not created.
> Currently the pool remains empty, making it impossible to add an appender to a logger at a later stage.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira