plog_fmt

Macro plog_fmt 

Source
macro_rules! plog_fmt {
    ($level:expr, $($arg:tt)*) => { ... };
}
Expand description

Log a formatted message at the specified level.

This macro provides printf-style formatting for log messages.

ยงExample

use vanguards_rs::{LogLevel, plog_fmt};

plog_fmt!(LogLevel::Notice, "Connected to Tor version {}", "0.4.7.0");
plog_fmt!(LogLevel::Info, "Layer2 guards: {}", 4);