Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-181

The default configurator does not populate the LoggerAppenderPool

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            john4log4php John
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified