use prettyt::{Color, make_style, sprintln};
fn main() {
let critical_style = make_style!(fg(Color::Red), bg(Color::Black), bold, underline,);
let subtle_style = make_style!(fg(Color::Ansi256(244)), italic);
let alert_badge = make_style!(fg(Color::White), bg(Color::Red), invert);
println!("{}", critical_style.apply("CRITICAL DATABASE EXCEPTION"));
println!("{}", subtle_style.apply("Connection pool footprint: 4.2ms"));
println!("{} File upload pending.", alert_badge.apply(" RETRY "));
println!();
let info_style = make_style!(fg(Color::Cyan), bold);
let success_style = make_style!(fg(Color::Green));
sprintln!(
info_style,
"-> Launching cluster workers on local thread context node #{}",
104
);
sprintln!(
success_style,
"-> Cluster synchronization status: {} (verified in {}s)",
"OK",
0.003
);
}