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

Remko Popma closed LOG4J2-1407.
-------------------------------
    Resolution: Fixed

> Misleading WARN log events from Log4j about message factories and unexpected 
> formatting
> ---------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1407
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1407
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.6
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 2.6.1
>
>
> We log misleading WARN log events from Log4j about message factories and 
> unexpected formatting.
> For example:
> {noformat}
> 2016-05-29 18:21:46,712 main WARN The Logger com.example.foo was created with 
> the message factory 
> org.apache.logging.log4j.spi.MessageFactory2Adapter@46bc9802 and is now 
> requested with the message factory org.apache.logging.log4j.m
> essage.StringFormatterMessageFactory@510e0dd2, which may create log events 
> with unexpected formatting.
> {noformat}
> This is because in 2.6, {{AbstractMessageFactory}} implements 
> {{MessageFactory}} instead of {{MessageFactory2}}.
> This issue changes {{AbstractMessageFactory}} to implement 
> {{MessageFactory2}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to