I love Debug Spew, but I need help containing it.
-
I'm using System.Diagnostics.Debug.WriteLine to dump info. to the Output window in VS. I need to implement some system for assigning verbosity level and on/off state per assembly. Any suggestions how to hook into existing infrastructure? Any notes on existing conventions (eg. should verbosity level 0 mean no filtering, or no output)? Note: I do want to keep this debug only. Thanks NIK
-
I'm using System.Diagnostics.Debug.WriteLine to dump info. to the Output window in VS. I need to implement some system for assigning verbosity level and on/off state per assembly. Any suggestions how to hook into existing infrastructure? Any notes on existing conventions (eg. should verbosity level 0 mean no filtering, or no output)? Note: I do want to keep this debug only. Thanks NIK
You can add custom tracelisteners, which allow you to redirect your logging output to any place you like. Perhaps this article[^] will show you what you need to know about that. Once you have created your own tracelistener, you can add in whatever verbosity settings you need. :josh: My WPF Blog[^]