def add_stream_logger(level=logging.DEBUG, name=None):
    """
    Add a stream logger. This can be used for printing all SDK calls to stdout
    while working in an interactive session. Note this is a logger for the
    entire module, which will apply to all environments started in the same
    session. If you need a specific logger pass a ``logfile`` to
    :func:`~sdk.init`

    Args:
        level(int): :mod:`logging` log level
        name(str): logger name, will default to the root logger.

    Returns:
        None
    """

    logger = logging.getLogger(name)
    logger.setLevel(level)
    handler = logging.StreamHandler()
    handler.setFormatter(get_default_log_formatter())
    handler.setLevel(level)
    logger.addHandler(handler)