lraulea commented on issue #234: URL: https://github.com/apache/logging-log4net/issues/234#issuecomment-2767088727
> [@lraulea](https://github.com/lraulea) You can override OpenFile() and check (before base.OpenFile()) whether the file already exists. When it already exists, you can zip and delete it. @FreeAndNil I've done some testing. My existing files are all `*-202503312012.log.0` and so on. The `fileName` that comes in the override of `OpenFile(string fileName, bool append)` does not contain the `DatePattern` `"'-'yyyyMMddHH"` As a result the `fileName` never exists. ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org