File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
139139 // Eliminates the BeginScope dictionary allocation and the LogInformation args-array allocation.
140140 [ LoggerMessage ( Level = LogLevel . Information ,
141141 Message = "[HTTP OUT] {Method} {HostPath} -> {StatusCode} in {ElapsedMs}ms | " +
142- "{Kind} q ={Query} rqH ={RequestHeaders} rqB ={RequestBody} rsH ={ResponseHeaders} rsB ={ResponseBody}" ) ]
142+ "{Kind} query ={Query} requestHeader ={RequestHeaders} requestBody ={RequestBody} responseHeader ={ResponseHeaders} responseBody ={ResponseBody}" ) ]
143143 private partial void LogHttpOut ( string method ,
144144 string hostPath ,
145145 int statusCode ,
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ public async Task InvokeAsync(HttpContext context)
2929 }
3030 finally
3131 {
32- var elapsedMs = Stopwatch . GetElapsedTime ( timestamp ) . TotalMilliseconds ;
32+ var elapsedMs = Stopwatch . GetElapsedTime ( timestamp )
33+ . TotalMilliseconds ;
3334 var ( resHeaders , resBody ) = await CaptureResponseAsync ( context , tee ) ;
3435
3536 context . Response . Body = originalBody ;
@@ -145,9 +146,8 @@ private static bool ShouldIgnorePath(PathString path) =>
145146 // Eliminates the BeginScope dictionary allocation and the LogInformation args-array allocation.
146147 [ LoggerMessage ( Level = LogLevel . Information ,
147148 Message = "[HTTP IN] {Method} {Path} -> {StatusCode} in {ElapsedMs}ms | " +
148- "{Kind} q={Query} rqH={RequestHeaders} rqB={RequestBody} rsH={ResponseHeaders} rsB={ResponseBody}" ) ]
149- private partial void LogHttpIn (
150- string method ,
149+ "{Kind} query={Query} requestHeader={RequestHeaders} requestBody={RequestBody} responseHeader={ResponseHeaders} responseBody={ResponseBody}" ) ]
150+ private partial void LogHttpIn ( string method ,
151151 string ? path ,
152152 int statusCode ,
153153 double elapsedMs ,
Original file line number Diff line number Diff line change 2121 <PackageIcon >pandatech.png</PackageIcon >
2222 <PackageReadmeFile >README.md</PackageReadmeFile >
2323
24- <Version >2.2.1 </Version >
24+ <Version >2.2.2 </Version >
2525 <PackageReleaseNotes >Request and Response logging modernized and has extreme perf boost for logging</PackageReleaseNotes >
2626
2727 <GenerateDocumentationFile >true</GenerateDocumentationFile >
You can’t perform that action at this time.
0 commit comments