Applying Advanced Logging in a gRPC Application
Learn how to apply advanced logging to gRPC.
We'll cover the following
To see the logs produced by the framework, we need to configure the logging provider and logging level. There's also a way to apply custom logging to capture what the framework is doing. To do so, we can configure logging interceptors for both the client and server.
There are many types of scenarios where using logging interceptors would be needed. For example, certain systems accept logs in a specific proprietary format, which cannot be applied by using standard libraries. Also, we might want to apply additional custom metadata to our logs, which interceptors will allow us to achieve easily.
We briefly covered gRPC interceptors when we looked at the advanced gRPC configuration. In this lesson, we'll cover them in more detail and see how they can be used for logging. We will start with the following project setup.
Get hands-on with 1200+ tech skills courses.