def convert_log_level(level=26):
    """
    Get a numeric log level from a string. The default 26 is for SHORT logs.

    :param level
    :return level
    """
    if not level:
        level = 26
    levels = {'notset': 0, 'debug': 10, 'info': 20, 'minimal': 22, 'short':
        26, 'warning': 30, 'error': 40, 'critical': 50}
    if isinstance(level, str):
        level = levels.get(level)
    return level
