feat: added the line number from where debug! was called to aid in easier finding of said debug! origin in files

This commit is contained in:
lisk77 2025-03-10 17:49:17 +01:00
parent 445818b79b
commit 9f66ed3eee

View file

@ -16,10 +16,11 @@ macro_rules! info {
macro_rules! debug {
($fmt:expr $(, $args:expr)*) => {
eprintln!(
"{} [{}::{}] [{}] : {}",
"{} [{}::{}:{}] [{}] : {}",
chrono::Local::now().format("%Y-%m-%d %H:%M:%S"),
std::env::var("CARGO_PKG_NAME").unwrap(),
module_path!(),
line!(),
"\x1b[34m\x1b[1mDEBUG\x1b[0m",
format!($fmt $(, $args)*)
);