Click or drag to resize
IEventLogServiceLogException Method
Writes a new error to the event log.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 8.2.23
Syntax
C#
void LogException(
	string source,
	string eventCode,
	Exception ex,
	bool allowMultiple = true
)

Parameters

source
Type: SystemString
Source of the event (Content, Administration, etc.)
eventCode
Type: SystemString
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.)
ex
Type: SystemException
Exception to be logged
allowMultiple (Optional)
Type: SystemBoolean
If true, it is allowed to log this exception multiple times within the application run
See Also