-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels