threaded_logger
A logger wrapper that spawns tokio
threads to make logging asynchronous.
Usage
It must be used with another logger crate that implements the log::Log
trait. This crate only provides a wrapper function.
Also, a tokio
runtime must be used.
Example
For example, you can use it with the env_logger
crate.
Cargo.toml
:
[]
= "0.4.0"
= "0.8.3"
= "0.1.0"
= { = "1.0", = ["full"] }
main.rs
:
async