pub fn init_logger_for_testing( stdout_level: Option<LevelFilter>, ) -> Result<LogGuard>
Returns an error if initializing the logger fails.