logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorne-Smith, Benjamin" <btsm...@zygo.com>
Subject RE: way to log debug output from unmanaged code?
Date Thu, 26 Jul 2007 17:15:12 GMT

I was looking for the same thing recently, and couldn't find anything
built into to log4net to support this. What I implemented was an
unmanaged class that logged to its own file while it had no reference to
a managed logging call back function and wrote its debug logs to the
managed logging call back routine if it had such a reference. You lose
several things in the logging, like automatic support for location of
the log message (as all unmanaged logging statements will look to
log4net as if they came from the managed that actually does the logging)
but it is still better than nothing. 


-----Original Message-----
From: Dan Blanchard [mailto:sattvikvibes@gmail.com] 
Sent: Thursday, July 26, 2007 12:28 PM
To: log4net-user@logging.apache.org
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?



View raw message