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

Allow DailyRollingFile appender to rollover programmatically

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Appenders
    • None

    Description

      Allow DailyRollingFile appender to rollover programmatically without appending any new log event.

      This will allow log file rollover, in case there's no messages to be logged for a long time,
      but the current log file needs to be backed up.

      I think making the rollOver method public would be sufficient

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            wielo Lukasz Wielek
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment