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

ASF GitHub Bot commented on LOG4J2-1084:
----------------------------------------

GitHub user Lemongrass3110 opened a pull request:

    https://github.com/apache/logging-log4j2/pull/13

    [LOG4J2-1084] LogManager Fix

    Fixes LOG4J2-1084.
    
    Left a TODO mark if you want to add some logging messages.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Lemongrass3110/logging-log4j2 LOG4J2-1084

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/13.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13
    
----
commit 765908e67fb77c820ed078c9bf1762f57c450cfc
Author: Lemongrass3110 <[email protected]>
Date:   2015-07-27T10:19:44Z

    LOG4J2-1084
    
    Fixes LOG4J2-1084.
    
    Left a TODO mark if you want to add some logging messages.

----


> Wrong logic with java.util.Map in LogManager
> --------------------------------------------
>
>                 Key: LOG4J2-1084
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1084
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.3
>            Reporter: Philipp Schneider
>            Priority: Minor
>              Labels: easyfix
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In the class org.apache.logging.log4j.LogManager in the API package there is 
> a logical problem with finding the factory.
> In the static initialization block starting at line 70 you try to create a 
> factory instance from the factory class specified in the property 
> "log4j2.loggerContextFactory". If that fails you try to find the class in all 
> the supplied providers.
> The problem comes in line 104. You check whether the list of factories is 
> empty and if it is not you automatically assume that there is more than 1 
> provider which has that class.
> Because of this I get the following logging entries on each startup:
> WARN StatusLogger Multiple logging implementations found: 
> Factory: org.apache.logging.log4j.core.impl.Log4jContextFactory, Weighting: 10
> Using factory: org.apache.logging.log4j.core.impl.Log4jContextFactory
> As you can see, it clearly outputs only a single possible factory and also 
> uses that one.
> Hope to see this fixed in 2.4 since it is really a minor issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to