NLog Trace Target
NLog Trace Target for writing to System.Diagnostics.Trace for each logevent.
If having trouble with output, then check NLog InternalLogger for clues. See also Troubleshooting NLog
See the NLog Wiki - Trace Target for available options and examples.
NLog TraceListener
NLog TraceListener for redirecting System.Diagnostics.Trace into NLog Logger output.
See the NLog Wiki - NLogTraceListener for available options and examples.
NLog ActivityId LayoutRenderer
NLog LayoutRenderer ${activityid} renders Guid from System.Diagnostics.Trace.CorrelationManager.ActivityId
See the NLog Wiki - ActivityId for available options and examples.
Register Extension
NLog will only recognize type-alias Trace when loading from NLog.config-file, if having added extension to NLog.config-file:
<extensions>
<add assembly="NLog.Targets.Trace"/>
</extensions>Alternative register from code using fluent configuration API:
LogManager.Setup().SetupExtensions(ext => {
ext.RegisterTarget<NLog.Targets.TraceTarget>();
});