Skip to content

file name created fliped #4

@aviveliron

Description

@aviveliron

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions