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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: API
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: