[logback-dev] [JIRA] Commented: (LBCORE-190) Adding missing directories creation for compressed file in FixedWindowRollingPolicy
Antoine (JIRA)
noreply-jira at qos.ch
Tue Jan 11 18:48:51 CET 2011
[ http://jira.qos.ch/browse/LBCORE-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11927#action_11927 ]
Antoine commented on LBCORE-190:
--------------------------------
Same behavior with the TimeBasedRollingPolicy class.
> Adding missing directories creation for compressed file in FixedWindowRollingPolicy
> -----------------------------------------------------------------------------------
>
> Key: LBCORE-190
> URL: http://jira.qos.ch/browse/LBCORE-190
> Project: logback-core
> Issue Type: Bug
> Components: Rolling
> Affects Versions: 0.9.24
> Reporter: Antoine
> Assignee: Logback dev list
>
> The FixedWindowRollingPolicy class does not have the same behavior between compressed file and uncompressed file.
> Indeed, if missing, the target directory is created for uncompressed file (through the util.rename method call at line 128)
> {noformat}
> // move active file name to min
> switch (compressionMode) {
> case NONE:
> util.rename(getActiveFileName(), fileNamePattern
> .convertInt(minIndex));
> break;
> case GZ:
> case ZIP:
> compressor.compress(getActiveFileName(), fileNamePattern.convertInt(minIndex));
> break;
> {noformat}
> Missing directories are not created for rolling files using compression.
> So could you please add this feature to be in phase with uncompressed rolling file ?
> Regards
> Antoine
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list