Skip to content

Commit 01bc459

Browse files
fixes #24386 grpc service logging in console. (#24503)
* fixes #24386 grpc service logging in console. * Update aspnetcore/tutorials/grpc/grpc-start.md Co-authored-by: Rick Anderson <[email protected]>
1 parent ab7ed79 commit 01bc459

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

aspnetcore/tutorials/grpc/grpc-start.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
289289
Request finished in 78.32260000000001ms 200 application/grpc
290290
```
291291

292+
Update the *appsettings.Development.json* file by adding the following lines:
293+
294+
```
295+
"Microsoft.AspNetCore.Hosting": "Information",
296+
"Microsoft.AspNetCore.Routing.EndpointMiddleware": "Information"
297+
```
298+
299+
300+
292301
> [!NOTE]
293302
> The code in this article requires the ASP.NET Core HTTPS development certificate to secure the gRPC service. If the .NET gRPC client fails with the message `The remote certificate is invalid according to the validation procedure.` or `The SSL connection could not be established.`, the development certificate isn't trusted. To fix this issue, see [Call a gRPC service with an untrusted/invalid certificate](xref:grpc/troubleshoot#call-a-grpc-service-with-an-untrustedinvalid-certificate).
294303

aspnetcore/tutorials/grpc/grpc-start/sample6/GrpcGreeter/appsettings.Development.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"Logging": {
33
"LogLevel": {
44
"Default": "Information",
5-
"Microsoft.AspNetCore": "Warning"
5+
"Microsoft.AspNetCore": "Warning",
6+
"Microsoft.AspNetCore.Hosting": "Information",
7+
"Microsoft.AspNetCore.Routing.EndpointMiddleware": "Information"
68
}
79
}
810
}

0 commit comments

Comments
 (0)