EventLogProvider LogEventInternal Method Kentico 8.0 API Reference
Writes a new record to the event log.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

eventType
Type: OnlineSystem String
Type of the event. Please use predefined constants from EventLogProvider
source
Type: OnlineSystem String
Source of the event (Content, Administration, etc.)
eventCode
Type: OnlineSystem String
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.)
eventDescription (Optional)
Type: OnlineSystem String
Detailed description of the event
eventUrl (Optional)
Type: OnlineSystem String
Event URL address
userId (Optional)
Type: OnlineSystem Int32
ID of the user, who caused logged event
userName (Optional)
Type: OnlineSystem String
Name of the user, who caused logged event
nodeId (Optional)
Type: OnlineSystem Int32
ID value of the document
documentName (Optional)
Type: OnlineSystem String
NamePath value of the document
ipAddress (Optional)
Type: OnlineSystem String
IP Address of the user, who caused logged event
siteId (Optional)
Type: OnlineSystem Int32
ID of the site
machineName (Optional)
Type: OnlineSystem String
Name of machine
urlReferrer (Optional)
Type: OnlineSystem String
Referrer URL
userAgent (Optional)
Type: OnlineSystem String
User agent
eventTime (Optional)
Type: OnlineSystem Nullable OnlineDateTime 
Date and time when the event occurs
exception (Optional)
Type: OnlineSystem Exception
Exception to log
allowMultiple (Optional)
Type: OnlineSystem Boolean
If true, it is allowed to log this exception multiple times within the application run

Return Value

Type: EventLogInfo
See Also