I'm modifying an existing piece of code that involves a custom trace
listener assembly but I simply don't understand the flow of control. How do
the bits and pieces fit together that implement and control a trace
listener? The existing Microsoft document that I've seen don't present
things in a manner that is meaningful to me so it would really be
appreciated if one of you more knowledgeable types who knows about this
would do the great favor of explaining in words of one syllable or less how
the individual parts of a custom trace listener interact with each other and
how the system knows how to hook them together.
Here's a related problem - what do the individual parts of the 'type'
attribute do? I've looked and looked but simply can't find a definition of
what information is supposed to go in the tag. Where does the 'name' value
get consumed? What does the first part of 'type' specify? Is it the name of
the object that implements the trace listener? And what's the second
argument, the 'Core.LogConsole' string do? Is it the assembly name as known
to the GAC that contains the trace listener object? And what about the
initializeData attribute?
<listeners>
<add name="LogConsoleListener" type="Core.Logging, Core.LogConsole,
Version=1.1.1.1, Culture=neutral;, PlublicKeyToken=1234abcd1234abcd"
initializeData="C:\Abc\Abc\Abc\" />
<listeners/>
--
Richard Lewis Haggard
www.Haggard-And-Associates.com