import logging


def logging_setup(config):
    """Logging setup."""
    config_log = {'filename': config.LOG_PATH,
                  'level': logging.ERROR,
                  'format': "%(levelname)s %(asctime)s - %(message)s",
                  'filemode': 'a'}
    logging.basicConfig(**config_log)
    return logging.getLogger()