1

Closed

Routing System.Diagnostics.Trace and System.Diagnostics.TraceSource logs through NLog

description

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.

file attachments

Closed Oct 7, 2012 at 4:37 PM by Xharze
Moved to https://github.com/NLog/NLog/issues/97

comments