use owo_colors::OwoColorize;
use rm_lisa::initialize_logging;
use tracing::{Instrument, error_span, info};
#[tokio::main]
pub async fn main() {
let console = initialize_logging("simple").expect("Failed to initialize logging!");
info!("Hello from simple!");
async {
async {
info!("Hello from other task!");
}
.instrument(error_span!("BSpan", extra.data = "hello world"))
.await;
}
.instrument(error_span!(
"ASpan",
id = "lisa::simple::example",
lisa.subsystem = "sdio",
))
.await;
info!(
"This will be rendered in {}{}{}{}{}{} if supported! # {}{}{}Play",
"C".red(),
"O".bright_red(),
"L".yellow(),
"O".green(),
"R".blue(),
"!".purple(),
"G".red(),
"A".white(),
"Y".purple(),
);
console.flush().await;
}