Hello,
I tried to use nlog-project.org/2010/09/02/routing-system-diagnostics-trace-and-system-diagnostics-tracesource-logs-through-nlog.html/comment-page-1 with “My.Application.Log.WriteException(ex)” or “My.Application.Log.WriteException(ex, TraceEventType.Warning, “More Info”)” (in vb).
But there are some issues:
- Callsite ist Microsoft.VisualBasic.Logging.Log.WriteEntry and not the method where it is called
- If I try to log an exception only the message of the original exception is logged and not its stack trace or any other information
I attached an example solution.