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

Fix FindBugs DM_DEFAULT_ENCODING bug in SimpleLogger.logMessage() and simplify code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.4
    • API
    • None

    Description

      Fix FindBugs DM_DEFAULT_ENCODING bug in SimpleLogger.logMessage() and simplify code.

      org.apache.logging.log4j.simple.SimpleLogger
      Bug	Category	Details	Line	Priority
      Found reliance on default encoding in org.apache.logging.log4j.simple.SimpleLogger.logMessage(String, Level, Marker, Message, Throwable): java.io.ByteArrayOutputStream.toString()	I18N	DM_DEFAULT_ENCODING	166	High
      Found reliance on default encoding in org.apache.logging.log4j.simple.SimpleLogger.logMessage(String, Level, Marker, Message, Throwable): new java.io.PrintStream(OutputStream)	I18N	DM_DEFAULT_ENCODING	165	High
      

      Attachments

        1. logging-log4j2.patch
          0.9 kB
          Gary D. Gregory

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: