You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
async-std/examples/logging.rs

16 lines
299 B
Rust

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