Function syslog

Source
pub fn syslog(pri: c_int, fmt: &str)
Expand description

C syslog, we use &str to replace *const i8. We still use libc flags here

ยงExamples

let file_name = String::from("null.txt");
let msg = format!("{} {}", "No this file", file_name);
syslog_c::syslog(libc::LOG_ERR, &msg);