pub(crate) fn init_log<F>( log_config: LogConfig<'_, F>, _cfg: &Config) -> Result<()>where F: Fn(&mut Formatter, &Record<'_>) -> Result<()> + Sync + Send + 'static,