def add_stream_logger(level=logging.DEBUG, name=None):
logger = logging.getLogger(name)<EOL>logger.setLevel(level)<EOL>handler = logging.StreamHandler()<EOL>handler.setFormatter(get_default_log_formatter())<EOL>handler.setLevel(level)<EOL>logger.addHandler(handler)<EOL>
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