I am working in Ektron 8.6
I am trying to use the helper functions in the EkException in my ektron website. I tried using the following code:
Exception ex=new Exception("Test exception");
EkException.LogException(ex,System.Diagnostics.EventLogEntryType.Information);
LogEventEntry entry=new LogEventEntry();
entry.EventName="Test event";
entry.Timestamp=DateTime.Now;
entry.UserID=22;
entry.VisitorID="Test";
EkException.AddEventEntry(entry);
EkException.WriteToEventLog("Myapp",System.Diagnostics.EventLogEntryType.Information);
I tried executing the above code with administarator privilege,and it doesnt throw any error. But there is no change in the event viewer.
Can someone help in figuring out this issue?