You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Ferdinand
The text was updated successfully, but these errors were encountered: