rm-lisa 0.3.2

A logging library for rem-verse, with support for inputs, tasks, and more.
Documentation
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(),
	);

	// Flush should always be called at exit to confirm that everything has been printed to the screen.
	console.flush().await;
}