You want to use the class: Ektron.Cms.Instrumentation;
Log.WriteMessage(“my message”, LogLevel.Verbose);
Keep in mind you must turn on the LogLevel in web.config.
Web.config, update LogLevel to “4”. Instrumentation.config, add “Trace” to “Verbose”
<add switchValue="All" name="Verbose">
<listeners>
<add name="Event Log" />
<add name="Trace" />
</listeners>
You may also use the following, but to recap the reason why you most likely were't seeing any events is because of the log level
Ektron.Cms.Instrumentation.Log.WriteError("error");
Ektron.Cms.Instrumentation.Log.WriteWarning("warning");
Ektron.Cms.Instrumentation.Log.WriteInfo("info");