Skip to content

DateLayoutRenderer default Format should be culture invariant #6232

Description

@snakefoot

Little weird that DateLayoutRenderer has the default Format:

  • yyyy/MM/dd HH:mm:ss.fff

Why not follow the default-format found every where else in NLog:

  • yyyy-MM-dd HH:mm:ss.ffff

Interesting that ${date} "originally" was born with default Format = G, that would follow the local culture. Then later hard-coded to one culture with explicit Format-string (with ffff). Think that Logging library should stay culture invariant unless requested otherwise.

Also $[processtime} should match the following format (Instead of fff):

  • HH:mm:ss.ffff

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions