import logging


def _get_stream_handler() -> logging.StreamHandler:
    """
    Define parameters of logging in the console.

    Returns:
        logging.StreamHandler: console handler of the logger.
    """
    stream_handler = logging.StreamHandler()
    stream_handler.setLevel(logging.INFO)
    stream_handler.setFormatter(
        logging.Formatter("%(levelname)s: %(message)s"),
    )
    return stream_handler