pub use chrono::Local;
pub use colored::*;
#[macro_export]
macro_rules! info {
($($arg:tt)*) => {{
let current_time = $crate::Local::now().format("%H:%M:%S");
println!("{} {:>5} {}", format!("{}", current_time).dimmed(), format!("INFO").green().bold(), format!($($arg)*))
}};
}
#[macro_export]
macro_rules! warn {
($($arg:tt)*) => {{
let current_time = $crate::Local::now().format("%H:%M:%S");
println!("{} {:>5} {}", format!("{}", current_time).dimmed(), format!("WARN").yellow().bold(), format!($($arg)*))
}};
}
#[macro_export]
macro_rules! error {
($($arg:tt)*) => {{
let current_time = $crate::Local::now().format("%H:%M:%S");
eprintln!("{} {:>5} {}", format!("{}", current_time).dimmed(), format!("ERROR").red().bold(), format!($($arg)*))
}};
}