title: Overriding System.Diagnostics.Trace.WriteLine to log to a file
body: <p>This may be more of an OOP concept question, but here's what I'd like to do.</p>
  
  <p>I have an application that outputs debug information using System.Diagnostics.Trace.WriteLine so it can be viewed with DebugView.</p>
  
  <p>I'd like to override/extend (not sure of the proper terminology) this method to log the text to a file instead, or maybe in addition to the Trace output. This would allow me to write a new WriteLine method for my app, and I could leave all my other System.Diagnostics.Trace.WriteLine statements unchanged throughout the rest of the application.</p>
  
  <p>So how would I go about changing the behavior of this method within my VB.Net app?</p>