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: 10.0.0
Syntax
C#
void LogException(
	string source,
	string eventCode,
	Exception ex,
	LoggingPolicy loggingPolicy = null
)

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
loggingPolicy (Optional)
Type: CMS.CoreLoggingPolicy
Logging policy.
See Also