Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1277

FormattedMessage, MessageFormatMessage and StringFormattedMessage should support passing in a Locale to ensure appropriate formatting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6
    • 2.6
    • API
    • None

    Description

      MessageFormatMessage uses MessageFormat,format(pattern, args), StringFormattedMessage uses String.format(pattern, args) both are using the default Locale to format the numbers.
      Sometime it is desirable/needed to use a specific locale (for instance LOG4J2-1276, or for a system running in one locale but which logs are exploited in another), therefore FormattedMessage, MessageFormatMessage and StringFormattedMessage should support passing in a Locale to ensure appropriate formatting.

      Attachments

        1. patch-log4j2-1277.diff
          5 kB
          Ludovic HOCHET

        Activity

          People

            Unassigned Unassigned
            lhochet Ludovic HOCHET
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: