http://blogs.msdn.com/philipbeber/archive/2005/07/06/debugmonitor.aspx

"
I thought it would be cool to write a version of
TextWriterTraceListener that worked more like DbgView.exe from
SysInternals, i.e. that listened to Trace.WriteLine()s from all
appdomains in all processes. Here is my first draft, which is basically
a managed version of the DbMon sample code from MSDN. It's a console
app that listens for calls to OutputDebugString() and echoes them to
stdout.
"

----- Original Message ----
From: Ron Grabowski <[EMAIL PROTECTED]>
To: Log4NET User <log4net-user@logging.apache.org>
Sent: Thursday, July 26, 2007 9:01:52 PM
Subject: Re: way to log debug output from unmanaged code?

I saw a blog post that had code that would capture output from 
OutputDebugStringA and pipe it into  System.Diagnostics.Trace, I can't seem to 
find the page anymore. I think it was from someone who works on the 
System.Diagnostics classes.

----- Original Message ----
From: Dan Blanchard <[EMAIL PROTECTED]>
To: log4net-user@logging.apache.org
Sent: Thursday, July 26, 2007 12:28:05 PM
Subject: way to log debug output from unmanaged code?

Is there a way to listen to debugoutput from an unmanaged c++ DLL?  I 
didn't see anything on the web site or mailing list archives.

 ie, something similar like sysinternals DebugView.  The c++ code would 
call OutputDebugStringA.  Or is there another way to do it?

Thanks,

Dan







Reply via email to