Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3644

Deprecate package scanning in 2.x and remove in 3.0

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19.0
    • 3.0.0, 2.19.1
    • Plugins
    • None

    Description

      Package scanning is been discouraged since the Log4j 2 annotation processor was first created. Users who use it typically either aren't aware it isn't necessary or because they are creating shaded jars and remove the package data file. 

      Because Log4j 2.x includes the annotation processor in the log4j-core jar most users have the packaging information present whether they realize it or not, so the upgrade to 3.x shouldn't impact too many people since they would have had to explicitly disable the annotation processor or remove the data file.

      Furthermore, Log4j 3 will use the JDK ServiceLoader to locate the plugin information which is supported out of the box by the maven shade plugin. 

      Attachments

        Issue Links

          Activity

            People

              rgoers Ralph Goers
              rgoers Ralph Goers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: