pub fn init_logging(log_dir: impl AsRef<Path>, log_prefix: &str) -> Result<()>
Initialize logging with file output and console output