Click or drag to resize
EventLogServiceExtensionsLogInformation Method
Writes a new information to the event log.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax
C#
public static void LogInformation(
	this IEventLogService eventLogService,
	string source,
	string eventCode,
	string eventDescription = null,
	int siteId = 0,
	LoggingPolicy loggingPolicy = null
)

Parameters

eventLogService
Type: CMS.CoreIEventLogService
Event log service that logs the arguments
source
Type: SystemString
Source of the event (Content, Administration, etc.)
eventCode
Type: SystemString
Event code (Security, Update, Delete, etc.)
eventDescription (Optional)
Type: SystemString
Additional event information
siteId (Optional)
Type: SystemInt32
The site identifier.
loggingPolicy (Optional)
Type: CMS.CoreLoggingPolicy
Logging policy

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