January 2019
Intermediate to advanced
520 pages
14h 32m
English
The actual logger implementations that are contained in some crates are as follows:
It can be difficult to choose between these logger implementations. I recommend that you explore them on crates.io to learn how they differ. The most popular one is env_logger, which is the one that we are going to use. env_logger reads the RUST_LOG environment variable to configure logging and prints logs to stderr. There is also the pretty_env_logger crate, which is built on top of env_logger and prints logs with a compact and colorful format. Both use the same environment variable for configuration.
Read now
Unlock full access