AbstractEventLogStrategyLogEvent Method (String, String, String, String, Exception) |
Writes a new event to the event log.
Namespace: CMS.EventLogAssembly: CMS.EventLog (in CMS.EventLog.dll) Version: 8.2.23
Syntax public abstract void LogEvent(
string eventType,
string source,
string eventCode,
string eventDescription = "",
Exception exception = null
)
Parameters
- eventType
- Type: SystemString
Type of the event. Please use predefined constants from EventLogProvider - source
- Type: SystemString
Source of the event (Content, Administration, etc.) - eventCode
- Type: SystemString
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.) - eventDescription (Optional)
- Type: SystemString
Event message. - exception (Optional)
- Type: SystemException
Exception to be logged
Implements
IEventLogStrategyLogEvent(String, String, String, String, Exception)See Also