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

        

Reply via email to