Click or drag to resize
EventLogHelperLogEventToFileInternal Method (String, String, String, String, String, Int32, String, Int32, String, String, Int32, String, String, String, DateTime)
Logs the query to file.

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 8.2.23
Syntax
C#
protected virtual void LogEventToFileInternal(
	string eventType,
	string source,
	string eventCode,
	string eventDescription,
	string eventUrl,
	int userId,
	string userName,
	int nodeId,
	string documentName,
	string ipAddress,
	int siteId,
	string machineName,
	string eventUrlReferrer,
	string eventUserAgent,
	DateTime eventTime
)

Parameters

eventType
Type: SystemString
Type of the event. I = information, E = error, W = warning
source
Type: SystemString
Source of the event (Content, Administration, etc.)
eventCode
Type: SystemString
Event code (Security, Update, Delete, etc.)
eventDescription
Type: SystemString
Detailed description of the event
eventUrl
Type: SystemString
Event URL address
userId
Type: SystemInt32
ID of the user, who caused logged event
userName
Type: SystemString
Name of the user, who caused logged event
nodeId
Type: SystemInt32
ID value of the document
documentName
Type: SystemString
NamePath value of the document
ipAddress
Type: SystemString
IP Address of the user, who caused logged event
siteId
Type: SystemInt32
ID of the site
machineName
Type: SystemString
Name of machine
eventUrlReferrer
Type: SystemString
URL referrer
eventUserAgent
Type: SystemString
User agent
eventTime
Type: SystemDateTime
Date and time when the event occurs
See Also