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

Log4j2 is creating empty log files.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.7
    • Component/s: Appenders
    • Labels:
      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

            People

            • Assignee:
              garydgregory Gary Gregory
              Reporter:
              nefsir Krzysztof Taborski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: