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

Rolling file appender concatenating debug message instead of using formatting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.11.0
    • 2.11.1, 3.0.0
    • Core
    • Any - Mac with log4j 2.11.0 using `-Dlog4j.debug` and a RollingFileAppender

    • Patch

    Description

      When debug is on, RollingFileAppender prints the shutdown message and concatenates the name, instead of passing it as an argument to be formatted:

      `"Shutting down RollingFileManager {}" + getName()`

      should be:

      `"Shutting down RollingFileManager {}", getName()`

      Attachments

        Issue Links

          Activity

            People

              ckozak Carter Kozak
              mike.baranski Michael Wells Baranski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified