I have an unmanaged DLL that writes log messages to standard output. I call this DLL using P-invokes from a WPF application and I need to get the standard output stream log. I tried Console.SetOut, but it only seems to capture information written using Console.Write, etc.
Does anyone have any ideas? I found similar questions asked elsewhere, but they have no answers.
source share