[slf4j-dev] [JIRA] Updates for SLF4J-545: lf4j-jdk-platform-logging - SLF4JPlatformLogger should use java.text.MessageFormat - not String.format()

QOS.CH (JIRA) noreply-jira at qos.ch
Fri Mar 18 05:52:00 CET 2022


SLF4J / SLF4J-545 [Open]
lf4j-jdk-platform-logging - SLF4JPlatformLogger should use java.text.MessageFormat - not String.format()

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-545

==============================
 Issue created
------------------------------

robin created this issue on 18/Mar/22 5:39 AM
Summary:              lf4j-jdk-platform-logging - SLF4JPlatformLogger should use java.text.MessageFormat - not String.format()
Issue Type:           Bug
Assignee:             SLF4J developers list
Created:              18/Mar/22 5:39 AM
Environment:
  
   Component: slf4j-jdk-platform-logging
Priority:             Major
Reporter:             robin
Description:
  This line here:
  
  [https://github.com/qos-ch/slf4j/blob/master/slf4j-jdk-platform-logging/src/main/java/org/slf4j/jdk/platform/logging/SLF4JPlatformLogger.java#L145]
  
   
  
  {{message = String.format(message, params);}}
  
  Should instead be:
  
  {{message = MessageFormat.format(message, params);}}
  
   
  
  Such that is matches the expected format of System.Logger.log() ... as per https://docs.oracle.com/javase/9/docs/api/java/lang/System.Logger.html#log-java.lang.System.Logger.Level-java.lang.String-java.lang.Object...-


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list