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 2020/11/16 20:58:00 UTC

[jira] [Commented] (LOG4J2-2964) Merge "packages" from several Configurations in Composite Configuration

    [ https://issues.apache.org/jira/browse/LOG4J2-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17233071#comment-17233071 ] 

Ralph Goers commented on LOG4J2-2964:
-------------------------------------

To be honest I would almost prefer removing the packages attribute as scanning the class path for plugins is very slow. Plugins should be located using the Log4jPlugins.dat file that gets generated by the annotation processor.  In 2.x these are located using ClassLoader.getResources() while in 3.x plugin descriptions are located via ServiceLoader, both of which are orders of magnitude faster.

> Merge "packages" from several Configurations in Composite Configuration
> -----------------------------------------------------------------------
>
>                 Key: LOG4J2-2964
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2964
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Configuration, Core
>            Reporter: Valery Yatsynovich
>            Priority: Major
>
> When multiple configuration files are used and default merge strategy is in place, the attribute {{"packages"}} of the latest configuration takes precedence. However multiple configuration files may declare custom Appenders defined as {{@Plugin}} and these plugins may be declared in different packages.
> The proposed improvement is to perform merging of  {{"packages"}}  attributes from multiple configuration files in {{DefaultMergeStrategy}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)