You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/12/27 04:32:00 UTC

[jira] [Resolved] (LOG4J2-3644) Deprecate package scanning in 2.x and remove in 3.0

     [ https://issues.apache.org/jira/browse/LOG4J2-3644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-3644.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> Deprecate package scanning in 2.x and remove in 3.0
> ---------------------------------------------------
>
>                 Key: LOG4J2-3644
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3644
>             Project: Log4j 2
>          Issue Type: Task
>          Components: Plugins
>    Affects Versions: 2.19.0
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>            Priority: Major
>             Fix For: 3.0.0, 2.19.1
>
>
> 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. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)