Closed
Description
This is a Feature Request
Compressing Rolled files in RollingFileAppender
I would like to be able to compress rolled files once thy are created. I don't see any way to get notified if a log file was rolled. Either a Callback or a protected override in the RollingFileAppender class signalling the log file rolling process, so I can interject and do a compression, would be great!
For example, it would be sufficient - I think - to change
protected void RollOverRenameFiles(string baseFileName)
to
protected virtual void RollOverRenameFiles(string baseFileName)
because then I could create a class
public class CompressingFileAppender : RollingFileAppender
{
protected virtual void RollOverRenameFiles(string baseFileName)
{
// Do the compression stuff here...
}
}
Ferdinand
Metadata
Metadata
Assignees
Labels
No labels