Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F3855200B0F for ; Fri, 3 Jun 2016 00:20:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2270160A56; Thu, 2 Jun 2016 22:20:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4BA78160A52 for ; Fri, 3 Jun 2016 00:20:00 +0200 (CEST) Received: (qmail 73577 invoked by uid 500); 2 Jun 2016 22:19:59 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 73468 invoked by uid 99); 2 Jun 2016 22:19:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2016 22:19:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 576D92C044E for ; Thu, 2 Jun 2016 22:19:59 +0000 (UTC) Date: Thu, 2 Jun 2016 22:19:59 +0000 (UTC) From: "Gary Gregory (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-1407) Misleading WARN log events from Log4j about message factories and unexpected formatting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Jun 2016 22:20:01 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory updated LOG4J2-1407: --------------------------------- Description: 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}}. was: 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} > 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-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org