Hi!
I have created a custom trace Listener class, called "DBTraceListene r"
it works fine when i add it manually in code :
(eg. Trace.listeners .add(new DBTraceListener ("myDBListener" ,
TraceLevel.Verb ose, getDBConnection ) )
What I'm trying to achieve now is to add this listener via the
MyApplication.e xe.config file
Here is my configuration file:
<configuratio n>
<system.diagnos tics>
<trace autoflush="true " indentsize="4">
<listeners>
<remove name ="Default"/>
<add name="myDBListe ner" type="DBTraceLi stener"/>
</listeners>
</trace>
</system.diagnost ics>
</configuration>
Unfortunately, when im executing the application the DefaultTraceLis tener is
removed BUT my DBTraceListener is not added!!! and I dont get any exceptions!
So what is going on?
Thanks in advance!
G.
I have created a custom trace Listener class, called "DBTraceListene r"
it works fine when i add it manually in code :
(eg. Trace.listeners .add(new DBTraceListener ("myDBListener" ,
TraceLevel.Verb ose, getDBConnection ) )
What I'm trying to achieve now is to add this listener via the
MyApplication.e xe.config file
Here is my configuration file:
<configuratio n>
<system.diagnos tics>
<trace autoflush="true " indentsize="4">
<listeners>
<remove name ="Default"/>
<add name="myDBListe ner" type="DBTraceLi stener"/>
</listeners>
</trace>
</system.diagnost ics>
</configuration>
Unfortunately, when im executing the application the DefaultTraceLis tener is
removed BUT my DBTraceListener is not added!!! and I dont get any exceptions!
So what is going on?
Thanks in advance!
G.
Comment