G
Guest
Hi!
I have created a custom trace Listener class, called "DBTraceListener"
it works fine when i add it manually in code :
(eg. Trace.listeners.add(new DBTraceListener("myDBListener",
TraceLevel.Verbose, getDBConnection) )
What I'm trying to achieve now is to add this listener via the
MyApplication.exe.config file
Here is my configuration file:
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<remove name ="Default"/>
<add name="myDBListener" type="DBTraceListener"/>
</listeners>
</trace>
</system.diagnostics>
</configuration>
Unfortunately, when im executing the application the DefaultTraceListener 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 "DBTraceListener"
it works fine when i add it manually in code :
(eg. Trace.listeners.add(new DBTraceListener("myDBListener",
TraceLevel.Verbose, getDBConnection) )
What I'm trying to achieve now is to add this listener via the
MyApplication.exe.config file
Here is my configuration file:
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<remove name ="Default"/>
<add name="myDBListener" type="DBTraceListener"/>
</listeners>
</trace>
</system.diagnostics>
</configuration>
Unfortunately, when im executing the application the DefaultTraceListener is
removed BUT my DBTraceListener is not added!!! and I dont get any exceptions!
So what is going on?
Thanks in advance!
G.