title: Cs-Script & System.Diagnostics.Debug : Overriding Debug output traces
body: <p>Okay, I think the title can be quite confusing... :)</p>
  
  <p>My application is using CS-Script as a script interface.
  In the scripts my application will be running, I want to have some sort of "Debug print" - meaning somewhere in the script the scripter can do "Debug.Print("BLAAAAH!!!");") and that would show up somewhere in my very funky output dialog.</p>
  
  <p>Of course I can create my own debug-ooutput-stuff, but since I'm using C# as a scripting language and people using C# would be used to use System.Diagnostics and use Debug.Print("..."),
  it would be great if I could reroute System.Diagnostics.Debug.Print("") and System.Diagnostics.Debug.WriteLine("...") to trace their output to my cool output-window.</p>
  
  <p>So.</p>
  
  <p>Does anybody know if it's possible to reroute C#'s System.Diagnostic.Debug print/writeline output to something I have control over ?</p>