Click or drag to resize
EventLogProviderLogWarning Method
Writes a new warning to the event log.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 11.0.0
Syntax
C#
public static void LogWarning(
	string source,
	string eventCode,
	Exception ex,
	int siteId,
	string additionalMessage
)

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
siteId
Type: SystemInt32
Current site ID
additionalMessage
Type: SystemString
Additional information to the exception message
See Also