My take on error handling and logging with Actix. In this video we are going to revisit the code from the Actix TODO Service series:
* Panic vs Result and the use of expect and unwrap.
* Custom errors and error handling in Actix
* Logging for Actix (and Rust in general)
If you don't want to handle Logger objects take a look at slog-scope:
As an alternative you can try the tracing library:
Let me know if I made a mistake or if there is a better way of doing this.
Source code:
Actix repository:
Actix web page:
Rust lang page:
Code editor/IDE:
Terminal:
My linkedin:

0 Comments