Quantcast
Channel: SLAB – Full Scale 180
Viewing all articles
Browse latest Browse all 2

SLAB Event Entries in Visual Studio Debug Output

$
0
0

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

3. Event entries will be written to debug output
SLAB Console Debug Output


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images