public void LogResponseError(string message, HttpRequestHeaders httpRequestHeaders, HttpContentHeaders contentHeaders, AggregateException aggregateException, RouteIdentifier routeIdentifier)
 {
     if (_configuration.IsLoggingEnabled)
     {
         using (var logStream = File.CreateText(GetFilePath(routeIdentifier, "request")))
         {
             logStream.WriteLine(message);
             var headers = httpRequestHeaders.GetHeadersLoggingString(contentHeaders);
             logStream.WriteLine(headers);
             var exceptionString = aggregateException.GetLoggingString();
             logStream.WriteLine(exceptionString);
         }
     }
 }
 public void LogResponseError(string message, HttpRequestHeaders httpRequestHeaders, HttpContentHeaders contentHeaders, AggregateException aggregateException, RouteIdentifier routeIdentifier)
 {
     if (_configuration.IsLoggingEnabled)
     {
         try
         {
             using (var logStream = new StreamWriter(GetCloudBlockBlob(routeIdentifier, "request").OpenWrite()))
             {
                 logStream.WriteLine(message);
                 var headers = httpRequestHeaders.GetHeadersLoggingString(contentHeaders);
                 logStream.WriteLine(headers);
                 var exceptionString = aggregateException.GetLoggingString();
                 logStream.WriteLine(exceptionString);
             }
         }
         catch (Exception)
         {
             //Swallow exeption to ensure logging errors don't cause the request to fail
         }
     }
 }