Do you want to use the class: Ektron.Cms.Instrumentation;
Log.WriteMessage ("my message", LogLevel.Verbose);
Remember that you must include LogLevel in web.config.
Web.config, upgrade LogLevel to "4". Instrumentation.config, add "Trace" to "Verbose"
<add switchValue="All" name="Verbose"> <listeners> <add name="Event Log" /> <add name="Trace" /> </listeners>
You can also use the following, but to understand the reason why you most likely did not see any events, due to the log level
Ektron.Cms.Instrumentation.Log.WriteError("error"); Ektron.Cms.Instrumentation.Log.WriteWarning("warning"); Ektron.Cms.Instrumentation.Log.WriteInfo("info");
source share