Skip to content

Rolling file UTC support #56

Open
Open
@dmch-dev

Description

@dmch-dev

Hi.
I want to configure serilog-sinks-file to create new log file each day according to UTC.

Please, take a look at your class Clock.cs:
https://github.com/serilog/serilog-sinks-file/blob/dev/src/Serilog.Sinks.File/Sinks/File/Clock.cs
Here you're using DateTime.Now, but what about using DateTime.UtcNow?

Is there any way to configure it to use UTC? Otherwise can you please add this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions