Open aviveliron opened 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
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