trace_macros::strace!
[−]
[src]
macro_rules! strace { (type=>$tp:expr, $msg:expr) => {{ println!("{}:{} - {}: {}", file!(), line!(), $tp, $msg); }}; ($msg:expr) => {{ println!("{}:{} - {}", file!(), line!(), $msg); }}; }
Simplified trace macro
Prints with the following format: file!:line! - [TYPE:] [Message]
Argument must have fmt::Display
trait.