trace_macros::traceln!
[−]
[src]
macro_rules! traceln { (type=>$tp:expr, $($arg:tt)+) => {{ traceln!("{}: {}", $tp, format_args!($($arg)+)); }}; (type=>$tp:expr) => {{ traceln!("{}", $tp); }}; ($($arg:tt)+) => {{ println!("{}", format_args!("{}:{} - {}", file!(), line!(), format_args!($($arg)+))); }}; }
Trace macro like println
It uses format_args!
for creating formatted string from passed arguments.
Prints with the following format: file!:line! - [type:] [Message]