Macro new_log_id
Source macro_rules! new_log_id {
($identifier:expr, $log_level:expr) => { ... };
}
Expand description
Macro to create a LogId with a custom identifier and LogLevel.
Note: The identifier must be a string literal.
ยงUsage
use logid_core::{new_log_id, log_id::LogLevel};
let id = new_log_id!("custom_ident", LogLevel::Debug);