import configparser
import logging


def read_config(filename):
    """Reads a config file.

    Args:
        filename (str): Filename of config file to be read.

    Returns:
        configparser.ConfigParser: Read config file.
    """
    parser = configparser.ConfigParser()
    parser.read(filename)
    logging.info(f'Read config file \'{filename}\'.')
    return parser