def add_stderr_logger(level=logging.DEBUG):
<EOL>logger = logging.getLogger(__name__)<EOL>handler = logging.StreamHandler()<EOL>handler.setFormatter(logging.Formatter('<STR_LIT>'))<EOL>logger.addHandler(handler)<EOL>logger.setLevel(level)<EOL>logger.debug('<STR_LIT>' % __name__)<EOL>return handler<EOL>
Helper for quickly adding a StreamHandler to the logger. Useful for
debugging.

Returns the handler after adding it.