private void LogCallStarted(string url, string marker, string callerMethodName, HttpMethodEnum httpMethod = HttpMethodEnum.Get, string body = null) { BigCommerceLogger.TraceLog(new RequestInfo() { Mark = marker, Url = url, LibMethodName = callerMethodName, Category = MessageCategoryEnum.Information, HttpMethod = httpMethod, Body = body, TenantId = this._config.TenantId, ChannelAccountId = this._config.ChannelAccountId }); }
private Exception HandleExceptionAndLog(string url, string marker, string callerMethodName, string statusCode, Exception ex) { BigCommerceLogger.LogTraceException(new ResponseInfo() { Mark = marker, Url = url, LibMethodName = callerMethodName, StatusCode = statusCode, Category = MessageCategoryEnum.Critical, TenantId = this._config.TenantId, ChannelAccountId = this._config.ChannelAccountId }, ex); return(new Exception(string.Format("Marker: '{0}'. Call to url '{1}' failed", marker, url), ex)); }
private void LogCallEnded(string url, string marker, string callerMethodName, string statusCode, string response, string remainingCalls, string systemVersion) { BigCommerceLogger.TraceLog(new ResponseInfo() { Mark = marker, Url = url, LibMethodName = callerMethodName, Category = MessageCategoryEnum.Information, Response = response, StatusCode = statusCode, RemainingCalls = remainingCalls, SystemVersion = systemVersion, TenantId = this._config.TenantId, ChannelAccountId = this._config.ChannelAccountId }); }