Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.17.0
-
None
Description
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:
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
Attachments
Issue Links
- is duplicated by
-
LOG4J2-2623 log4j-to-slf4j: Messages are formatted twice if there happen to be a `{}` in the parameters
- Resolved
- links to