[][src]Macro kubos_app::logging_setup

macro_rules! logging_setup {
    ($name:expr) => { ... };
    ($name:expr, $level:path) => { ... };
}

Helper macro to set up the logger for the program

All log messages will be sent to rsyslog using the User facility. Additionally, they will also be echoed to stdout

Arguments

Examples

use kubos_app::logging_setup;
// Initialize logging at default Debug level, using identifier "my_app"
logging_setup!("my_app");
use kubos_app::logging_setup;
use log::*;

// Initialize logging at Info level, using the crate name for the identifier
logging_setup!(env!("CARGO_PKG_NAME"), log::LevelFilter::Info);