You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "yankai zhang (Jira)" <ji...@apache.org> on 2021/10/19 12:36:00 UTC

[jira] [Created] (LOG4J2-3178) DefaultMergeStrategy do not merge type of logger node

yankai zhang created LOG4J2-3178:
------------------------------------

             Summary: DefaultMergeStrategy do not merge type of logger node
                 Key: LOG4J2-3178
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3178
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.11.1
            Reporter: yankai zhang
         Attachments: image-2021-10-19-20-25-16-215.png

This is how {{DefaultMergeStrategy#mergConfigurations}} merge logger nodes:

!image-2021-10-19-20-25-16-215.png!

{{type}} of the later logger node will not replace previous one.

So, if previous file define a sync root logger, and later file define an async root logger, the final logger is sync.



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