Click or drag to resize
EventLogProviderLogWarning Method

Note: This API is now obsolete.

Writes a new warning to the event log.

This method is obsolete and will be removed in future version. Use LogEvent(EventLogData) or LogWarning(IEventLogService, String, String, Exception, Int32, String, LoggingPolicy) instead.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.Core.Service.Resolve<CMS.Core.IEventLogService>().LogWarning(source, eventCode, ex, siteId, additionalMessage)' code instead.")]
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