Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2.1
-
None
-
None
Description
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.