October 2019
Intermediate to advanced
444 pages
10h 37m
English
In this more complex example, we are using Rust's logging infrastructure, which consists of two main parts:
After the initial setup in steps 1 and 2, we simply have to import the macros provided by the log crate in step 3—nothing more. As we create a function to write to all available log levels (think of the levels as tags to filter by) and an additional target in this line in step 4 (as shown in the ...
Read now
Unlock full access