Skip to main content

test_log

Macro test_log 

Source
macro_rules! test_log {
    ($logger:expr, $cat:literal, $($arg:tt)*) => { ... };
}
Expand description

Log a custom event to a test logger.

§Example

test_log!(logger, "setup", "Creating listener on port {}", port);
test_log!(logger, "test", "Sending {} bytes", data.len());