Writes a new record to the event log.
            
Namespace: CMS.EventLogAssembly: CMS.EventLog (in CMS.EventLog.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- eventType
 - Type: 
System String
Type of the event. Please use predefined constants from EventLogProvider 
- source
 - Type: 
System String
Source of the event (Content, Administration, etc.) 
- eventCode
 - Type: 
System String
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.) 
- eventDescription (Optional)
 - Type: 
System String
Detailed description of the event 
- eventUrl (Optional)
 - Type: 
System String
Event URL address 
- userId (Optional)
 - Type: 
System Int32
ID of the user, who caused logged event 
- userName (Optional)
 - Type: 
System String
Name of the user, who caused logged event 
- nodeId (Optional)
 - Type: 
System Int32
ID value of the document 
- documentName (Optional)
 - Type: 
System String
NamePath value of the document 
- ipAddress (Optional)
 - Type: 
System String
IP Address of the user, who caused logged event 
- siteId (Optional)
 - Type: 
System Int32
ID of the site 
- machineName (Optional)
 - Type: 
System String
Name of machine 
- urlReferrer (Optional)
 - Type: 
System String
Referrer URL 
- userAgent (Optional)
 - Type: 
System String
User agent 
- eventTime (Optional)
 - Type: 
System Nullable 
DateTime 
Date and time when the event occurs 
Return Value
Type: EventLogInfoSee Also