[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Abhishek Mundewal commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Hi @Ceki Gülcü, I changed the SizeAndTimeBasedArchiveRemover to fix the problem of not deleting the non-archived log files of the maxHistory expired directories. I changed the stemRegex from list all files of the folder instead of only archived. IMHO If folder is expired from the maxHistory perspective then ideally we should delete the all contents of it. Please review the pull request https://github.com/qos-ch/logback/pull/420 Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Abhishek Mundewal commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Hi @Ceki Gülcü, I tried with this version as well, unfortunately the problem still persists. Logback leaves some files unzipped and those aren't deleted when max history reach since logback only deleted zipped/archived files. Problem can be seen in example attached, refer to comment #https://jira.qos.ch/browse/LOGBACK-1341?focusedCommentId=19118&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-19118 Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Ceki Gülcü commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Abhishek Mundewal There is a good chance that this is a duplicate of LOGBACK-1361 fixed in the 1.3.x series. Can you give the latest logback version in the 1.3.x series a try? Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Abhishek Mundewal commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Hi, I tried after adding the time based part to the fileNamePattern as suggested, but unfortunately this does not solve the problem. You can verify this with the attached program, after updating the logback for appender named "SOMETIMES" and run the LogBackExample main program. You'll be able to see the behaviour on day change. Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Merlijn van der Mee commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Might it be that you are missing the time based part of the fileNamePattern Like: ${dirName}/logFile_overall.%d{-MM-dd}.%i.log.zip Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Title: Message Title Abhishek Mundewal commented on LOGBACK-1341 Re: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Hi, Could anyone please look into this issue. Add Comment This message was sent by Atlassian JIRA (v7.3.1#73012-sha1:68837e3) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev
[logback-dev] [JIRA] (LOGBACK-1341) SizeAndTimeBasedRollingPolicy does not zip all the files on day change
Abhishek Mundewal created LOGBACK-1341: -- Summary: SizeAndTimeBasedRollingPolicy does not zip all the files on day change Key: LOGBACK-1341 URL: https://jira.qos.ch/browse/LOGBACK-1341 Project: logback Issue Type: Bug Components: logback-core Affects Versions: 1.2.3 Environment: Reporter: Abhishek Mundewal Assignee: Logback dev list SizeAndTimeBasedRollingPolicy does not zip all the files on day change. Due to that it does not clean/delete the older (older than MaxHistory) files. We've the application those are generating big (2GB/3GB) log files on daily basis, so that's why we moved to SizeAndTimeBasedRollingPolicy from TimeBasedRollingPolicy, but here is a problem that (SizeAndTimeBasedRollingPolicy) does not zip/archive all the files on day change, that's why when max history reached the files which were archived/zipped were deleted but rest were left there. I googled but did not find any solution for that. Please consider adding this feature to Logback and feel free to contact me if further clarification is required. -- This message was sent by Atlassian JIRA (v7.3.1#73012) ___ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev