Skip to content

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

Open
sunbuny wants to merge 2 commits intoemilk:masterfrom
sunbuny:dev/sunbuny
Open

Replace _fsopen on Windows to allow the opened file to be used by logrotate (supporting move and delete operations)#251
sunbuny wants to merge 2 commits intoemilk:masterfrom
sunbuny:dev/sunbuny

Conversation

@sunbuny
Copy link

@sunbuny sunbuny commented Jun 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant