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

Error message contains reference to non-existent DirectFilenameRolloverStrategy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.13.2
    • Fix Version/s: 2.14.0
    • Component/s: Core
    • Labels:
      None

      Description

      If you configure a `RollingFileAppender` with no `fileName` configured the mesagge refrences a non existing `Strategy`:

      LOGGER.error("RollingFileAppender '{}': When no file name is provided a DirectFilenameRolloverStrategy must be configured", getName());
      

      https://github.com/apache/logging-log4j2/blob/log4j-2.13.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/RollingFileAppender.java#L141

      A similar problem was already reported and fixed in: https://issues.apache.org/jira/browse/LOG4J2-2547

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asbachb Benjamin Asbach
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m