EAPUtilLogApiRequest Method (IAppContext, String, String, String, String, String, Int32, String, String, String, String, Object, Double) |
Logs an API request
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static void LogApiRequest(
IAppContext appCxt,
string token,
string requestName,
string errorMessage = null,
string content = null,
string response = null,
int statusCode = 200,
string method = null,
string url = null,
string ip = null,
string machineName = null,
Object relatedID = null,
double duration = -1
)
Public Shared Sub LogApiRequest (
appCxt 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 method As String = Nothing,
Optional url As String = Nothing,
Optional ip As String = Nothing,
Optional machineName As String = Nothing,
Optional relatedID As Object = Nothing,
Optional duration As Double = -1
)
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context. - token
- Type: SystemString
The token. - requestName
- Type: SystemString
The request, optional. - errorMessage (Optional)
- Type: SystemString
The error message, if any. - content (Optional)
- Type: SystemString
The content, optional. - response (Optional)
- Type: SystemString
The response, optional. - statusCode (Optional)
- Type: SystemInt32
The status code, optional. - method (Optional)
- Type: SystemString
The HTTP method, optional. - url (Optional)
- Type: SystemString
The url, optional. - ip (Optional)
- Type: SystemString
The IP address. If null, the ClientIP is used. - machineName (Optional)
- Type: SystemString
The name of the machine. - relatedID (Optional)
- Type: SystemObject
The relatedID of the request - duration (Optional)
- Type: SystemDouble
The duration of the request
See Also