[ https://issues.apache.org/jira/browse/LOG4J2-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carter Kozak resolved LOG4J2-3289. ---------------------------------- Resolution: Fixed > log4j-to-slf4j should not re-format the result of Message.getFormattedMessage > ----------------------------------------------------------------------------- > > Key: LOG4J2-3289 > URL: https://issues.apache.org/jira/browse/LOG4J2-3289 > Project: Log4j 2 > Issue Type: Bug > Components: SLF4J Bridge > Affects Versions: 2.17.0 > Reporter: Carter Kozak > Assignee: Carter Kozak > Priority: Major > Fix For: 2.17.1 > > > Both the formatted message result (for the configured MessageFactory) and the > parameter array are passed to slf4j, such that slf4j attempts to format the > already formatted result: > [https://github.com/apache/logging-log4j2/blob/20f9a97dbe5928c3b5077bcdd2a22ac92e941655/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLogger.java#L226-L256] > Caught a similar issue while reviewing this change, but realized it also > applies to the slf4j bridge: > [https://github.com/apache/logging-log4j2/pull/653#discussion_r775083351] -- This message was sent by Atlassian Jira (v8.20.1#820001)