Click or drag to resize

EAPUtilLogApiRequest Method (IAppContext, String, String, String, String, String, Int32, Object, Double, String)

Logs an API request to the xot_api_request_log table.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void LogApiRequest(
	IAppContext cxt,
	string token,
	string requestName,
	string errorMessage = null,
	string content = null,
	string response = null,
	int statusCode = 200,
	Object relatedID = null,
	double duration = -1,
	string ackGUID = null
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
token
Type: SystemString
The authorization token.
requestName
Type: SystemString
The API request name.
errorMessage (Optional)
Type: SystemString
The error message associated with the entry, if any.
content (Optional)
Type: SystemString
The HTTP request content, typically a JSON string.
response (Optional)
Type: SystemString
The HTTP response content, typically a JSON string.
statusCode (Optional)
Type: SystemInt32
The HTTP status code, defaults to 200.
relatedID (Optional)
Type: SystemObject
The related ID, if any.
duration (Optional)
Type: SystemDouble
A numeric value representing a duration asociated wih the entry, in milliseconds.
ackGUID (Optional)
Type: SystemString
A GUID to identify this log entry for subsequent ACKing.
See Also