Enables scripted content fragments to use EventLogs
Methods
Write
Write Overload 1
Writes a new event log
Velocity
#set($additionalInfoResponse = $core_v2_eventLog.Write($message))
JavaScript
var additionalInfoResponse = core_v2_eventLog.Write(message);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
message | String | Message | Required |
Write Overload 2
Writes a new event log
Velocity
#set($additionalInfoResponse = $core_v2_eventLog.Write($message, "%{ Category = $categoryArg, EventId = $eventIdArg, EventType = $eventTypeArg }"))
JavaScript
var additionalInfoResponse = core_v2_eventLog.Write(message, { Category: categoryArg, EventId: eventIdArg, EventType: eventTypeArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
message | String | Log message | Required | ||
options | Options | Set of optional parameters including: | Required | ||
Category | String | If not specified, default Category will be used. | Optional | Unknown | |
EventId | Int32 | If not specified, default EventId will be used. | Optional | -1 | |
EventType | String | If not specified, default EventType will be used. Options are Information, Warning and Error. | Optional | Information | Error, Information, Warning |