cocowalla / serilog-sinks-file-gzip

Plugin for the Serilog File sink that compresses output using streaming GZIP
Apache License 2.0
12 stars 1 forks source link

file name created fliped #4

Open aviveliron opened 1 year ago

aviveliron commented 1 year ago

Creating: MarsLogger= new LoggerConfiguration() .WriteTo.Map("Name", "Unknown", (name, wt) => wt.File($"{SerilogMars.Properties.Resources.BaseDirectoy}/Logs/{name}/{name}.txt.gz", outputTemplate: "{Timestamp:yyyy/MM/dd}\t{Timestamp:HH:mm:ss.fff}\t{Message:lj}{NewLine}{Exception}", rollOnFileSizeLimit: true, rollingInterval: RollingInterval.Hour, flushToDiskInterval: TimeSpan.FromSeconds(5), hooks:new GZipHooks().Then(new HeaderWriter(CreateHeader(name))))) .CreateLogger();

file name created: "FunctionLog.txt2023030120.gz"

the .txt jumps back