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