def set_logger(self, logger_name, level=logging.INFO):
log = logging.getLogger(logger_name)<EOL>log.setLevel(level)<EOL>ch = logging.StreamHandler(None)<EOL>ch.setLevel(level)<EOL>if level == logging.INFO:<EOL><INDENT>formatter = logging.Formatter(InfoFmtString)<EOL><DEDENT>else:<EOL><INDENT>formatter = logging.Formatter(DebugFmtString)<EOL><DEDENT>ch.setFormatter(formatter)<EOL>log.addHandler(ch)<EOL>
Convenience function to quickly configure full debug output
to go to the console.