12 releases
new 0.2.3 | Nov 27, 2024 |
---|---|
0.2.2 | Nov 27, 2024 |
0.1.20241126 | Nov 26, 2024 |
0.1.20241024 | Oct 24, 2024 |
#482 in Debugging
730 downloads per month
16KB
463 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
~1.7–2.3MB
~45K SLoC