cocowalla / serilog-sinks-file-archive

Plugin for the Serilog File sink that works with rolling log files, archiving completed log files before they are deleted by Serilog's retention mechanism
Apache License 2.0
31 stars 8 forks source link

Is it possible to apply "retainedFileCountLimit" to archived log files #8

Closed Ali94k closed 3 years ago

Ali94k commented 3 years ago

I want to delete archived files after a while. How can this be achieved? Could you please advise on this

ilkinmammadzada commented 3 years ago

+1

cocowalla commented 3 years ago

In general, the assumption is that logs are being archived for some other process to hoover them up or otherwise deal with them.

On the face of it though, this seems like a reasonable thing to add - when I get a chance, I'll take a look at this and see if there are any complications or problems with it!

cocowalla commented 3 years ago

@EamonHetherton thanks for getting involved 😻

cocowalla commented 3 years ago

Closed by #9

alex-pashkov97 commented 2 years ago

Hey, any updates when it will be released? I could really use this feature. Thanks in advance

cocowalla commented 2 years ago

@alex-pashkov97 sorry, I totally forgot this feature wasn't on NuGet yet! I'll try to get it published tomorrow.

cocowalla commented 2 years ago

@alex-pashkov97 Done!

https://www.nuget.org/packages/Serilog.Sinks.File.Archive/1.0.2