Log4j 2
  1. Log4j 2
  2. LOG4J2-741

Reinstate the package attribute for discovering custom plugins

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc2, 2.0
    • Fix Version/s: 2.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      Several people reported problems with their custom plugins no longer being recognized by log4j2. See LOG4J2-673 and this StackOverflow question.

      Plugins created before the annotation processor was added to log4j2 (all plugins created with 2.0-rc1 and earlier) may not have a META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat file.

      Previously plugins without this metadata file could still be found if the user specified their custom plugin package(s) in the packages attribute of the <Configuration> element in their log4j2.xml configuration file.

      However, since 2.0-rc2, the packages configuration attribute was disabled; users may still specify a value, but log4j2 will no longer use this value to try to load custom plugins. This causes problems for custom plugins built before the annotation processor was added to log4j2, as well as custom plugins that are built in an environment where the annotation processor does not work (for example, most IDEs require some setting changes to enable annotation processing).

      This Jira ticket is to reactivate the packages configuration attribute.

        Issue Links

          Activity

          Matt Sicker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Remko Popma made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Remko Popma made changes -
          Link This issue is broken by LOG4J2-595 [ LOG4J2-595 ]
          Remko Popma made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Remko Popma made changes -
          Assignee Matt Sicker [ jvz ] Remko Popma [ remkop@yahoo.com ]
          Remko Popma made changes -
          Link This issue relates to LOG4J2-746 [ LOG4J2-746 ]
          Remko Popma made changes -
          Link This issue relates to LOG4J2-743 [ LOG4J2-743 ]
          Remko Popma made changes -
          Priority Major [ 3 ] Blocker [ 1 ]
          Remko Popma made changes -
          Link This issue relates to LOG4J2-673 [ LOG4J2-673 ]
          Remko Popma made changes -
          Attachment LOG4J2-741-patch.txt [ 12657615 ]
          Matt Sicker made changes -
          Field Original Value New Value
          Assignee Matt Sicker [ jvz ]
          Remko Popma created issue -

            People

            • Assignee:
              Remko Popma
              Reporter:
              Remko Popma
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development