Macro dirty_debug::ddbg
source · macro_rules! ddbg {
($uri:expr, $f:literal) => { ... };
($uri:expr, $f:literal, $($arg:tt)*) => { ... };
}
Expand description
Writes a message to the given location. The message will be formatted.
Example — Logging to a file
ddbg!("/tmp/log", "Hello {}!", "world");
Example — Logging to a tcp endpoint
ddbg!("tcp://192.168.1.42:12345", "Hello {}!", "world");