We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
When calling ArchiveHooks with retainedFileCountLimit the target directory is ignored.
ArchiveHooks
retainedFileCountLimit
Fore example: new ArchiveHooks(3, CompressionLevel.Fastest, "/archive"); will never move compressed files in /archive folder.
new ArchiveHooks(3, CompressionLevel.Fastest, "/archive");
/archive
Possible solution:
serilog-sinks-file-archive/src/Serilog.Sinks.File.Archive/ArchiveHooks.cs
Line 50 in d3a20bb
should be this.targetDirectory = targetDirectory;
this.targetDirectory = targetDirectory;
fix: #13 use provided archive path
@blazsvigelj thanks for finding this, it's now been fixed and a new version pushed: https://www.nuget.org/packages/Serilog.Sinks.File.Archive/1.0.3
Activity
fix: #13 use provided archive path
fix: #13 use provided archive path
cocowalla commentedon Nov 22, 2022
@blazsvigelj thanks for finding this, it's now been fixed and a new version pushed: https://www.nuget.org/packages/Serilog.Sinks.File.Archive/1.0.3