Click or drag to resize
EventLogServiceExtensionsLogEvent Method
Writes a new record to the event log.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax
C#
public static void LogEvent(
	this IEventLogService eventLogService,
	EventTypeEnum eventType,
	string source,
	string eventCode,
	string eventDescription = null
)

Parameters

eventLogService
Type: CMS.CoreIEventLogService
Event log service that logs the arguments
eventType
Type: CMS.CoreEventTypeEnum
Type of the event EventTypeEnum
source
Type: SystemString
Source of the event (Content, Administration, etc.)
eventCode
Type: SystemString
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.)
eventDescription (Optional)
Type: SystemString
Detailed description of the event

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEventLogService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also