I wanted to create a logger that writes either to a file, or to the System.Diagnostics.Trace
. To my astonishment, I found that .NET class library does not have a TextWriter
implementation that writes to the System.Diagnostics.Trace
. Fortunately, it is relatively easy to create.
Previous Post: Unmanaged Hosting API Gotcha
Next Post: Framework Design Guidelines Book – Part IV