Returns a dictionary that is empty or has a "logging" key that refers to
    the (up to 3) key-value pairs that pertain to logging and are read from the env.
    This is mainly a convenience function for ConfigWrapper so that it can accurately
        report the source of the logging settings without

def _logging_env_conf_overrides(log_init_warnings=None):
    """Returns a dictionary that is empty or has a "logging" key that refers to
    the (up to 3) key-value pairs that pertain to logging and are read from the env.
    This is mainly a convenience function for ConfigWrapper so that it can accurately
        report the source of the logging settings without
    """
    # This is called from a locked section of _read_logging_config, so don't call that function or you'll get deadlock
    global _LOGGING_ENV_CONF_OVERRIDES
    if _LOGGING_ENV_CONF_OVERRIDES is not None:
        return _LOGGING_ENV_CONF_OVERRIDES
    with _LOGGING_ENV_CONF_OVERRIDES_LOCK:
        if _LOGGING_ENV_CONF_OVERRIDES is not None:
            return _LOGGING_ENV_CONF_OVERRIDES
        level_from_env = os.environ.get("PEYOTL_LOGGING_LEVEL")
        format_from_env = os.environ.get("PEYOTL_LOGGING_FORMAT")
        log_file_path_from_env = os.environ.get("PEYOTL_LOG_FILE_PATH")
        _LOGGING_ENV_CONF_OVERRIDES = {}
        if level_from_env:
            env_w_list = []
            _get_logging_level(level_from_env, env_w_list)
            if len(env_w_list) > 0:
                if log_init_warnings is not None:
                    log_init_warnings.extend(env_w_list)
                    log_init_warnings.append('PEYOTL_LOGGING_LEVEL is invalid. Relying on setting from conf file.')
            else:
                _LOGGING_ENV_CONF_OVERRIDES.setdefault("logging", {})['level'] = level_from_env
        if format_from_env:
            env_w_list = []
            _get_logging_formatter(format_from_env, env_w_list)
            if len(env_w_list) > 0:
                if log_init_warnings is not None:
                    log_init_warnings.extend(env_w_list)
                    log_init_warnings.append('PEYOTL_LOGGING_FORMAT was invalid. Relying on setting from conf file.')
            else:
                _LOGGING_ENV_CONF_OVERRIDES.setdefault("logging", {})['formatter'] = format_from_env
        if log_file_path_from_env is not None:
            _LOGGING_ENV_CONF_OVERRIDES.setdefault("logging", {})['filepath'] = log_file_path_from_env
        return _LOGGING_ENV_CONF_OVERRIDES