Questions about app.config's <listeners> attributes

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: Using Special Folders in App.Config
    ... To create the trace listener in code you have to find the earliest point ... 20090709 23:17:18.759: .ctor Tracing Started ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vb)
  • Default trace listener
    ... I am trying to make a trace listener textbox that behaves like the ... I created my own listener to write to a textbox and added this listener ... compiled with TRACE active and use their own internal tracesource class ...
    (microsoft.public.dotnet.languages.vb)
  • custom trace listener attached system.net ???
    ... OK I know how to create a custom listener on the trace object that allow me ...
    (microsoft.public.dotnet.framework)
  • listener taking statins losing his grip (as if...)
    ... As soon as I saw that post I thought "listener. ... trace and it comes out just east of Philadelphia. ... Amazing, init. ...
    (sci.med.cardiology)
  • [NEWS] Oracle Listener Control Format Strings
    ... Oracle provides a tool called the Listener Control utility to ... Typically an attack would require the attacker to modify the file ...
    (Securiteam)