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

RollingFile does not roll with createOnDemand=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.11.2, 2.13.0
    • 2.13.1
    • Core
    • None

    Description

      Steps to reproduce:

      1) Run code in attached file. It will create log file named 'Error' in
      /home/user/Temp
      with one log message
      2) Change time on your computer to next day
      3) Rerun code. It will add another message to the same file.

      Correct behavior:
      on step 3 log4j must create new File

       

       

       

      Attachments

        1. Log4jCreateOnDemand.java
          2 kB
          Kuznetsov Anton

        Issue Links

          Activity

            People

              rgoers Ralph Goers
              BuriyMedved Kuznetsov Anton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: