Dan, 

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. 

Ben

-----Original Message-----
From: Dan Blanchard [mailto:[EMAIL PROTECTED] 
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?

Thanks,

Dan



Reply via email to