def set_stream_logger(name='<STR_LIT>', level=logging.DEBUG, format_string=None):
if format_string is None:<EOL><INDENT>format_string = "<STR_LIT>"<EOL><DEDENT>global logger<EOL>logger = logging.getLogger(name)<EOL>logger.setLevel(logging.DEBUG)<EOL>handler = logging.StreamHandler()<EOL>handler.setLevel(level)<EOL>formatter = logging.Formatter(format_string, datefmt='<STR_LIT>')<EOL>handler.setFormatter(formatter)<EOL>logger.addHandler(handler)<EOL>
Add a stream log handler.

    Args:
         - name (string) : Set the logger name.
         - level (logging.LEVEL) : Set to logging.DEBUG by default.
         - format_string (sting) : Set to None by default.

    Returns:
         - None