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

Log4j2 is creating empty log files.

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

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.2
    • 2.7
    • Appenders
    • None

    Description

      I've started migration from logback and found out one quite annoying issue: since I often change logDirectory for FileAppenders I'm getting a lot of empty log files.
      As far as I know log4j2 is creating file (according to FileAppender) even if there is no output. Maybe such feature should be parametrized?

      Attachments

        Activity

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

          People

            ggregory Gary D. Gregory
            nefsir Krzysztof Taborski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment