pub trait CargoCfgProvider {
    fn get_use_logger(&self) -> bool;
    fn get_log_level(&self) -> String;
    fn get_log_use_ansi(&self) -> bool;
    fn get_log_file_enabled(&self) -> bool;
    fn get_log_file_path(&self) -> Option<String>;
    fn get_log_file_rotate_directory(&self) -> Option<String>;
    fn get_oslog_category(&self) -> Option<String>;
    fn get_oslog_subsystem(&self) -> Option<String>;
    fn get_evs_url(&self) -> String;
    fn get_sc_url(&self) -> String;
}

Required Methods

Must return one of (case-insensitive):

  • “error”
  • “warn”
  • “info”
  • “debug”
  • “trace” or number equivalent:
  • “1” - error
  • “2” - warn
  • “3” - info
  • “4” - debug
  • “5” - trace

Implementors