Click or drag to resize
IEventLogStrategyLogEvent Method (String, String, String, String, Exception)
Writes a new event to the event log.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 8.2.23
Syntax
C#
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
See Also