NLog LogEventInfo TimeStamp should default to DateTime.UtcNow
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- observability-sre
Research direction
Start with LogEventInfo and the Time-Source documentation linked in the issue, then trace how timestamps are created and how ${date}, ${longdate}, and ${time} request output. Define how UTC storage, local-time output, AccurateUtc defaults, and configurable default time zones should interact; done means the behavior is specified and covered for the mentioned output modes.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C#
- Stars
- 6.5k
- Forks
- 1.4k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NLog/NLog
-
documentation
Difficulty 2/5 Half a day Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
discussion
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
DateLayoutRenderer default Format should be culture invariantPossibly taken @HarnageaGabriel claimed this 88 days ago. Openbreaking behavior change breaking change
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 38/100
Maintainers usually reply within 1 day
-
Move to slnxOpen
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
[中] 更新器下载缓存从不清理Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Remove duplicate Vimeo DI registration; use NimblePros.Vimeo AddVimeoServices and upgrade packageOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DevBetterCom/DevBetterWeb#1486 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NimblePros/eShopOnWeb#333 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100