-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
We now have a working to-do application that can either run as a single binary or run as multiple servers. However, we do not actually know what is going on inside our system. Let us say that our system makes a request from one server to another. How do we know that this request was made and what the response was? We don’t. We can try and work out what happened from the error message returned to the frontend, but this might not be clear. We also might not want to expose intricate details of the error to the frontend. To remedy this, we can produce logs of these requests and how the request travels through the system. This also gives us the power to inspect the steps that lead up to the error. Logging also enables us to keep an eye on the health of the system. In this chapter, we will cover the following:
By the end of this chapter, you will be able to log what is going on in...