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

Rolling file appender concatenating debug message instead of using formatting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11.0
    • Fix Version/s: 3.0.0, 2.11.1
    • Component/s: Core
    • Labels:
    • Environment:

      Any - Mac with log4j 2.11.0 using `-Dlog4j.debug` and a RollingFileAppender

    • Flags:
      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

              • Assignee:
                ckozak Carter Kozak
                Reporter:
                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