macro_rules! send_log { ($result:expr,$log_head:expr,$name:expr,$data:expr,$protocol:expr) => { ... }; }
send data and print log