When debugging your application it’s often nice to write trace output to the Visual Studio debug window. The Semantic Logging Application Block (SLAB) does not come with a debug sink, but a console sink is available and these entries can easily be redirected to the debug output.
1. Create a type derived from StringWriter
2. Pass an instance in to Console.SetOut and use the console sink