def get_logger(verbosity):
logger = logging.getLogger(__name__)<EOL>logger.setLevel({<EOL><NUM_LIT:0>: DEFAULT_LOGGING_LEVEL,<EOL><NUM_LIT:1>: logging.INFO,<EOL><NUM_LIT:2>: logging.DEBUG<EOL>}.get(min(<NUM_LIT:2>, verbosity), DEFAULT_LOGGING_LEVEL))<EOL>logger.handlers = []<EOL>handler = logging.StreamHandler(sys.stdout)<EOL>handler.setLevel(logging.DEBUG)<EOL>handler.setFormatter(logging.Formatter('<STR_LIT>'))<EOL>logger.addHandler(handler)<EOL>return logger<EOL>
Returns simple console logger.