def add_logger(name, level=None, format=None):
format = format or '<STR_LIT>'<EOL>log = logging.getLogger(name)<EOL>log.setLevel(level or logging.INFO)<EOL>ch = logging.StreamHandler(sys.stdout)<EOL>ch.setFormatter(logging.Formatter(format))<EOL>log.addHandler(ch)<EOL>return log<EOL>
Set up a stdout logger.

Args:
    name (str): name of the logger
    level: defaults to logging.INFO
    format (str): format string for logging output.
                  defaults to ``%(filename)-11s %(lineno)-3d: %(message)s``.

Returns:
    The logger object.