init_logger

Function init_logger 

Source
pub fn init_logger(level: u8) -> Result<()>
Expand description

Initializes tracing logger

  • level - A log level. If the PSCR_LOG environment variable is given, PSCR_LOG is preferred and level is ignored.
    • 0 - ""
    • 1 - "info"
    • 2 - "debug"
    • 3 and more - "trace"

releated: Args::verbose