-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NdlcLayoutRenderer - Nested Diagnostics Logical Context #2110
Conversation
d28a5c6
to
732b560
Compare
Codecov Report
@@ Coverage Diff @@
## master #2110 +/- ##
=======================================
+ Coverage 81% 81% +<1%
=======================================
Files 289 291 +2
Lines 19957 20069 +112
Branches 2360 2376 +16
=======================================
+ Hits 16176 16323 +147
+ Misses 3175 3140 -35
Partials 606 606 |
Cool! Great! I propose:
|
732b560
to
a6f2fb5
Compare
@304NotModified Accepted |
thanks! |
/// <returns>The top message which is no longer on the stack.</returns> | ||
public static object Pop() | ||
{ | ||
var current = GetThreadLocal(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see it now in the code. It this really a Pop (should remove it from the stack)? looks like a Top method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry not sure I understand the Pop-method modifies the stack by removing the top-element and returns it.
@snakefoot could you please help me by adding some docs to the wiki? Thanks! |
@304NotModified Added new wiki page: https://github.com/NLog/NLog/wiki/NDLC-Layout-Renderer |
thanks!! |
Could the documentation possibly be included to explain what is the purpose of NDLC and NDC and maybe how it differs from MDLC and MDC? With NLog 4.5 structured logging MDLC seems to add metadata properties that are part of the structured data being logged but not part of the message rendered, correct? What does NDLC do then? append the pushed value to the rendered message or prepended, does it also support structured data, etc...? |
@furier please create a new github issue. Closed issues are difficult to track. Thanks! |
Make it easier to support Microsoft ILogger BeginScope (And maybe resolve #1615 and #1181)
Maybe rename to Nested Diagnostics Logical Context (NDLC) ?