def log_init(level):
log = logging.getLogger()<EOL>hdlr = logging.StreamHandler()<EOL>formatter = logging.Formatter('<STR_LIT>')<EOL>hdlr.setFormatter(formatter)<EOL>log.addHandler(hdlr)<EOL>log.setLevel(level)<EOL>
Set up a logger that catches all channels and logs it to stdout.

    This is used to set up logging when testing.