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

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 9.0.0
Syntax
C#
protected virtual void LogExceptionInternal(
	string source,
	string eventCode,
	Exception ex,
	int siteId,
	string additionalMessage,
	LoggingPolicy loggingPolicy
)

Parameters

source
Type: System.String
Source of the event (Content, Administration, etc.)
eventCode
Type: System.String
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.)
ex
Type: System.Exception
Exception to be logged
siteId
Type: System.Int32
Current site ID
additionalMessage
Type: System.String
Additional information to the exception message
loggingPolicy
Type: CMS.Core.LoggingPolicy
Logging policy.
See Also