Crate trace_macros [−] [src]
A crate with printing macros.
These macros aims to provide a simple and lazy way to print formatted traces.
Example:
#[macro_use(TRACE, ENTER)] extern crate trace_macros; fn double_var(var: i32) -> i32 { ENTER!(var); var * var } fn main() { ENTER!(); TRACE!("I'm", "doing", "some", "lazy", "tracing"); TRACE!("Result:", double_var(2)); traceln!("2*2 = {}", double_var(2)); }
Macros
DEBUG! |
DEBUG macro which uses |
DEBUG_TRACE! |
Debug trace macro like |
ENTER! |
ENTER macro which uses |
ERROR! |
ERROR macro which uses |
INFO! |
INFO macro which uses |
TRACE! |
Trace macro which concats passed arguments into one string. |
WARNING! |
WARNING macro which uses |
connect_args! |
Macro to concat several arguments into one string. |
debug! |
DEBUG macro which uses |
enter! |
ENTER macro which uses |
error! |
ERROR macro which uses |
info! |
INFO macro which uses |
strace! |
Simplified trace macro |
th_trace! |
Thread trace macro like |
traceln! |
Trace macro like |
warning! |
WARNING macro which uses |