You can use the helper functions from the Ektron.Cms.Instrumentation class. To use these features, you need to enable some settings in the configuration files.
Web.config: update LogLevel as "4"
<add name="LogLevel" value="4"/>
Instrumentation.config:
Add "Trace" to "Verbose"
<add switchValue="All" name="Verbose"> <listeners> <add name="Event Log" /> <add name="Trace" /> </listeners> </add>
After making these changes to the configuration files, you can use the helper functions.
For example,
Exception ex = new exception ("Test Exception");
Ektron.Cms.Instrumentation.Log.WriteError (ex);
(Explore the Ektron.Cms.Instrumentation class for more details)
Bisileesh
source share