6 Logging, tracing, and debugging
This chapter covers
- Using logging, tracing, and debugging in your web service
- Understanding logging options in Rust
- Using external crates to improve your logging experience
- Using the tracing crate in your web service
- Setting up a debugging environment for your Rust web service
- Debugging a web service written in Rust
The first five chapters of the book covered implementing a web service in Rust, why and how to implement asynchronous concepts, and the splitting of our Rust code into modules and libraries. This alone helps to read and understand the code and makes future changes fast to implement. You also learned how to use the rigid nature of the compiler to help spot errors and improve your code.
This chapter ...
Get Rust Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.