You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ Example of `NLog.config` file that uses the `diagnosticListener` target:
130
130
```
131
131
132
132
### SpanId / TraceId in custom NLog Target
133
-
NLog v5.3.4 introduced support for `Layout.FromMethod` that supports typed NLog `Layout<T>`. This allows [custom NLog Targets](https://github.com/NLog/NLog/wiki/How-to-write-a-custom-target-for-structured-logging) to resolve SpanId / TraceId with support for AsyncWrapper, without having to parse from string or depend on `NLog.DiagnosticSource` nuget-package:
133
+
NLog v5.3.4 introduced support for `Layout.FromMethod` that returns typed NLog `Layout<T>`. This allows [custom NLog Targets](https://github.com/NLog/NLog/wiki/How-to-write-a-custom-target-for-structured-logging) to resolve SpanId / TraceId with support for AsyncWrapper, without having to parse from string or depend on `NLog.DiagnosticSource` nuget-package:
134
134
```csharp
135
135
publicclassMyCustomTarget : TargetWithContext
136
136
{
@@ -159,3 +159,4 @@ public class MyCustomTarget : TargetWithContext
0 commit comments