[ 
https://issues.apache.org/jira/browse/LOGCXX-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645535#comment-17645535
 ] 

Robert Middleton commented on LOGCXX-568:
-----------------------------------------

Idea: add a new bool to the File class(autoDelete?) that will automatically 
delete the file if set.

> Cleaunup files if rollover fails
> --------------------------------
>
>                 Key: LOGCXX-568
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-568
>             Project: Log4cxx
>          Issue Type: Improvement
>            Reporter: Robert Middleton
>            Assignee: Robert Middleton
>            Priority: Major
>
> We can sometimes leave around 0-byte files if the rollover fails to work 
> correctly.  Need to determine what conditions this happens under and to 
> delete files when this happens.
> This should be as simple as creating some kind of FileDeleter class that will 
> automatically delete a file as part of its destruction, but if everything 
> goes fine we don't delete it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to