You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/02/04 16:18:00 UTC

[jira] [Resolved] (LOG4J2-2759) RollingFile does not roll with createOnDemand=true

     [ https://issues.apache.org/jira/browse/LOG4J2-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-2759.
---------------------------------
    Fix Version/s: 2.13.1
       Resolution: Fixed

Patch has been applied with a unit test that verifies the fix. Please verify and close.

> RollingFile does not roll with createOnDemand=true
> --------------------------------------------------
>
>                 Key: LOG4J2-2759
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2759
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.11.2, 2.13.0
>            Reporter: Kuznetsov Anton
>            Assignee: Ralph Goers
>            Priority: Major
>             Fix For: 2.13.1
>
>         Attachments: Log4jCreateOnDemand.java
>
>
> 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
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)