def setup_console_logger(log_level='error', log_format='%(asctime)s [%(levelname)-5s] %(message)s', date_format='%H:%M:%S'):
    '\n    Sets up logging to STDERR, allowing for configurable level, format, and\n    date format.\n    '
    _remove_temp_handler()
    rootlogger = logging.getLogger()
    handler = logging.StreamHandler()
    handler.setLevel(LOG_LEVELS.get(log_level, logging.ERROR))
    formatter = logging.Formatter(log_format, date_format)
    handler.setFormatter(formatter)
    rootlogger.addHandler(handler)
Sets up logging to STDERR, allowing for configurable level, format, and
date format.
def setup_console_logger(log_level='error', log_format='%(asctime)s [%(levelname)-5s] %(message)s', date_format='%H:%M:%S'):
    '\n    Sets up logging to STDERR, allowing for configurable level, format, and\n    date format.\n    '
    _remove_temp_handler()
    rootlogger = logging.getLogger()
    handler = logging.StreamHandler()
    handler.setLevel(LOG_LEVELS.get(log_level, logging.ERROR))
    formatter = logging.Formatter(log_format, date_format)
    handler.setFormatter(formatter)
    rootlogger.addHandler(handler)