macro_rules! th_trace {
(type=>$tp:expr, $($arg:tt)+) => { ... };
(type=>$tp:expr) => { ... };
($($arg:tt)+) => { ... };
}Expand description
Thread trace macro like println
It uses format_args! for creating formatted string from passed arguments.
Prints with the following format: [thread_name] file!:line! - [type:] [Message]