In my winforms app, I’m using a 3rd party library that logs to Console.Error.
Console.Error.WriteLine("some error message");
Is there some tool I can use to see these messages? I only want to see them while developing/debugging.
I thought debugview might do it, but it only shows Trace messages. Also, Visual Studio’s “Output” window does not show it either (when attached to the process).
If there are no tools, how about a way to redirect StdErr to Trace logs?
You can call
Console.SetErrorto redirect output to your ownTextWriter– which could in turn useTraceorDebug, or possibly write to a virtual console within your app.