-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async to remove old log file #306
Comments
You mentioned If I understand correctly, this is a one-time issue the first time you start the app after adding in compression via |
@cocowalla I looked at the source code, |
@SpringHgui that's kind of what I was getting at 😄 But for the issue to be actionable here, might I suggest you couch it in more general terms (rather than related to an issue with one specific plugin), provide a justification, and possibly provide the bones of a solution? |
change to this?
Increase the speed of program startup and asynchronously archive expiration log file |
The retention process there is performed under the Perhaps another option @SpringHgui would be to rename the file inside the archive hook, e.g. to In theory you could achieve this by wrapping the lifecycle hook provided by Hope this helps, |
Hi,
You can log an issue in my repo for more features and requests Would be happy to get your feedback: |
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. For example, "I'd like to do x but currently I can't because y [...]".
my configuration was like this,2 log files will be retained and 70 compressed log files, ArchiveHooks
serilog-sinks-file/src/Serilog.Sinks.File/Sinks/File/RollingFileSink.cs
Line 206 in 2a61b4b
Describe the solution you'd like
Archive files are usually compressed or copied, which takes a lot of time. During this period, the main program should not be blocked from starting. Async to remove old log file supported
serilog-sinks-file/test/Serilog.Sinks.File.Tests/Support/ArchiveOldLogsHook.cs
Line 20 in 2a61b4b
Describe alternatives you've considered
A clear and concise description of any workarounds or alternative solutions you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: