pub fn setup_log(name: &str, log_level: LevelFilter) -> Result<(), Error>
Expand description

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

  • name - The application name which should be used for all log messages
  • log_level - The minimum logging level which should be recorded