T
Thomas Koch
Hi there - I am developing a general library which allows programs to access
our server product.
I am using the System.Configuration.Trace and
System.Configuration.BooleanSwitch classes for logging at runtime in my
library. When developing a console/windows application a user simply has to
set up a few switches and a trace listener within the application config
file in order to enable logging in the library:
<system.diagnostics>
<switches>
<add name="RobotExecuter" value="1" />
</switches>
<trace autoflush="true" >
<listeners>
<add name="mylog"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="robosuite.log.txt" />
</listeners>
</trace>
</system.diagnostics>
Now I would very much like to do the same in an ASP.NET application, however
the schema for Web.config files do not allow me to insert a
<system.diagnostics> section. Also I have been unable to locate any
configuration section handler which handles the system.diagnostic section.
How do I do this in ASP.NET? Any help would be greatly appreciated.
Regards
Thomas Koch
our server product.
I am using the System.Configuration.Trace and
System.Configuration.BooleanSwitch classes for logging at runtime in my
library. When developing a console/windows application a user simply has to
set up a few switches and a trace listener within the application config
file in order to enable logging in the library:
<system.diagnostics>
<switches>
<add name="RobotExecuter" value="1" />
</switches>
<trace autoflush="true" >
<listeners>
<add name="mylog"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="robosuite.log.txt" />
</listeners>
</trace>
</system.diagnostics>
Now I would very much like to do the same in an ASP.NET application, however
the schema for Web.config files do not allow me to insert a
<system.diagnostics> section. Also I have been unable to locate any
configuration section handler which handles the system.diagnostic section.
How do I do this in ASP.NET? Any help would be greatly appreciated.
Regards
Thomas Koch