syslog-rs 7.1.0

A native Rust implementation of the glibc/libc/windows syslog client and windows native log for logging.
Documentation
#[cfg(all(feature = "build_with_logger", not(feature = "logger_lazy")))]
use syslog_rs::{init_event_log, logger_dbg, logger_emerg, logger_error, logger_info, logger_warn};



/// Set the `SYSLOG_LOGGER_DST_URI` to "local#" or "file#/tmp/test123.txt"
/// 
/// Set the `SYSLOG_LOGGER_LOG_FORMATTER` to "FILE" for the "file#..."
/// 
/// And then tun.
#[cfg(all(feature = "build_with_logger", not(feature = "logger_lazy")))]
pub fn main()
{
    // if you want to have it separated i.e SYSLOG_LOGGER_DST_URI_CRATENAME
    // then set the argument of this function to Some("CRATENAME")
    init_event_log(None).unwrap();

    logger_dbg!("debug: test_logger_simple");
    logger_info!("info: test1test_logger_simple23");
    logger_error!("error: test_logger_simple");
    logger_warn!("warn: test_logger_simple");
    logger_emerg!("emerg: test_logger_simple");
}


#[cfg(all(feature = "build_with_logger", feature = "logger_lazy"))]
pub 
fn main()
{

}