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

Add getters for source and destination file in file rename action

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Appenders, Core
    • Labels:
      None

      Description

      I'm building a Spring Integration module which leverages log4j2's RollingFileAppender to publish messages whenever the file rolls.

      However, since the FileRenameAction's source and destination files are private and have no getters, I've had to extend that class and copy all of the code DefaultRolloverStrategy to make my implementation work. Since there's a lot of logic in DefaultRolloverStrategy I'd prefer to use the one that ships with log4j, rather than maintaining a fork of the class.

      I'll open a pull request on GitHub shortly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                garydgregory Gary Gregory
                Reporter:
                sworisbreathing Steven Swor
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: