2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00
async-std/examples/logging.rs
Marc-Antoine Perennou 58c0aca6cc update femme
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-08-19 13:37:43 +02:00

15 lines
299 B
Rust

//! Prints the runtime's execution log on the standard output.
use async_std::task;
fn main() {
femme::with_level(log::LevelFilter::Trace);
task::block_on(async {
let handle = task::spawn(async {
log::info!("Hello world!");
});
handle.await;
})
}