Tracing
Tracing is a library for logging. It consists of multiple libraries. You need at least tracing, which is the base of the logging system, and tracing_subscriber, which defines the subscriber of the tracing messages.
# To install
cargo add tracing tracing_subscriber
Setup
First you need to setup how the tracing messages are subscribed/used. You can setup a basic logging using the following code:
tracing_subscriber::fmt()
.with_target(false)
.with_level(true)
.compact()
.init();