import logging


def loglevel(log_level):
    """Return the log-level for the logging module.

    :type log_level: str
    :param log_level: The log-level string

    :returns: int
    """
    levels = {
        'info': logging.INFO,
        'error': logging.ERROR,
        'warning': logging.WARNING,
        'success': logging.INFO,
    }
    return levels[log_level]