NLog LogEventInfo TimeStamp should default to DateTime.UtcNow
Author: snakefootCreated Jun 24, 2025Updated Apr 9, 2026
Labelsbreaking change
It is annoying that one must always remember to specify correct NLog Time-Source to get accurate timings:
<time type="AccurateUtc" />https://github.com/NLog/NLog/wiki/Time-Source
Instead NLog should change so it uses AccurateUtc by default, but support changing timestamp-output to be local-time (default) or utc-time (explicit). Similar to being able to change the default-culture on LoggingConfiguration / LogFactory, then it should be possible to change the default-time-zone (default local)
The overhead of converting from UTC-time to Local-time should only apply to targets that requests Local-time output using ${date} / ${longdate} / ${time} / etc.
Source: NLog/NLog