Macro aul::log

source ·
macro_rules! log {
    ($lvl:expr, $($arg:tt)+) => { ... };
}
Expand description

macro for logging with a specific Level

Example

 use aul::level::Level;
 use aul::log;

 log!(Level::INFO,"This is an information");
 // [INFO]: This is an information
 let num = 1;
 log!(Level::DEBUG,"{} + {}","This is a debugging message",num);
 // [DEBUG]: This is a debugging message + 1