gjshah7254
3/24/2014 - 12:15 AM

Adding an Event log.html

Adding an Event log.html

Using CMS.Eventlog;//NameSpace

var eventLogProvider = new EventLogProvider();//Not need in kentico 8
eventLogProvider.LogEvent("E",
                          DateTime.Now,
                          "CustomInfo",
                          "Custom - ",
                          "eventUrl",
                          "Some error description");


EventLogInfo ev = new EventLogInfo("Warranty Rego", "", "");