Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture debug output in C#

Is it possible to capture debug output (create debug listener) in C#?

I'd like to have functionality like DebugView has, but I'd like to log debug output to SQL Server. Or maybe a better way would be to make DebugView log to a file, and then feed the file to SQL Server?

I've implemented TraceListener and added it to Debug.Listeners collection, but it seems to capture debug only from my application. What I want to do is to capture debug from all applications. Is there a way to do that?

like image 305
Axarydax Avatar asked Oct 14 '22 06:10

Axarydax


1 Answers

DbMon.NET - A simple .NET OutputDebugString capturer at http://www.codeproject.com/KB/trace/DbMonNET.aspx seems to do what you want.

like image 155
Polyfun Avatar answered Oct 19 '22 03:10

Polyfun