Skip to main content

trace_connection

Macro trace_connection 

Source
macro_rules! trace_connection {
    ($protocol:expr, $event:expr) => { ... };
    ($protocol:expr, $event:expr, $($field:tt)*) => { ... };
}
Expand description

Log a connection event.

§Example

use mabi_core::trace_connection;

trace_connection!("modbus", "connected", peer = %addr);