3 releases
new 0.1.20241016 | Oct 16, 2024 |
---|---|
0.1.20241011 | Oct 11, 2024 |
0.1.20241008 | Oct 8, 2024 |
#491 in Debugging
348 downloads per month
27KB
538 lines
use async_logger::{error, info, LevelFilter};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
initialize_logging().await;
info!("starting...");
Ok(())
}
async fn initialize_logging() {
match async_logger::builder()
.max_log_level(LevelFilter::Info)
.bounded(100_000, false)
.try_init()
{
Ok(_) => {}
Err(e) => error!("{e}"),
}
}
Dependencies
~3.5MB
~58K SLoC