CustomTraceListener attributes collection

Topics: Logging Application Block
Aug 2, 2007 at 3:17 PM
I'm writing a custom trace listener but I haven't found any information about how to retrieve the key/value couples from the attributes collection defined inside
the configuration console. Is there anyone that can provide any hint as I didn't find anything inside the docs or blogs on internet?
Aug 2, 2007 at 6:09 PM

The custom trace listener will have its Attributes property configured with the supplied key/value pairs. This StringDictionary can be accesed using a string as a key; the key should match what the user specified in the configuration file.

You can look at the MockCustomTraceListener from the unit test project for the logging block.