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
)
Public Shared Sub LogApiRequest (
cxt As IAppContext,
token As String,
requestName As String,
Optional errorMessage As String = Nothing,
Optional content As String = Nothing,
Optional response As String = Nothing,
Optional statusCode As Integer = 200,
Optional relatedID As Object = Nothing,
Optional duration As Double = -1,
Optional ackGUID As String = Nothing
)
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