loguru icon indicating copy to clipboard operation
loguru copied to clipboard

Replace _fsopen on Windows to allow the opened file to be used by logrotate (supporting move and delete operations)

Open sunbuny opened this issue 1 year ago • 0 comments

When using loguru on Windows with #define LOGURU_WITH_FILEABS 1, logrotate cannot be used to manage the growing file size. This is because files opened with _fsopen cannot be used by logrotate while the process is still running. I made some modifications to solve this issue and conducted some tests.

sunbuny avatar Jun 13 '24 02:06 sunbuny