import logging


def new_console_logger(level=logging.WARNING):
    """Creates a new console logging handler for use in logger.

    :rtype: logging.StreamHandler
    :return: new logging.StreamHandler object
    """
    c_logger = logging.StreamHandler()
    c_logger.setLevel(level)
    c_logger.setFormatter(logging.Formatter("%(levelname)-8s - %(message)s"))
    return c_logger