The Switch class nicely encapsulates getting the switch value from the registry, so it’s easy to derive a custom switch if the values of TraceSwitch don't work well. The following example implementsSpecialSwitch
, which implements the
Mute
,
Terse
,
Verbose
, and
Chatty
logging levels:
Let us see the code sample.
0 comments
Hide comments