def _format_config(log_config):
    """Format config parameters before logging them"""
    for k, v in log_config.items():
        if callable(v):
            if hasattr(v, '__qualname__') and hasattr(v, '__module__'):
                log_config[k] = f'{v.__module__}.{v.__qualname__}'
            else:
                log_config[k] = str(v)
        if isinstance(v, slice):
            log_config[k] = dict(slice_start=v.start, slice_step=v.step,
                slice_stop=v.stop)
