def setup_logger(verbose, logfile):
level = logging.WARNING<EOL>if verbose == <NUM_LIT:1>:<EOL><INDENT>level = logging.INFO<EOL><DEDENT>elif verbose > <NUM_LIT:1>:<EOL><INDENT>level = logging.DEBUG<EOL><DEDENT>if logfile:<EOL><INDENT>logging.basicConfig(filename=logfile, level=level, format=LOGGING_FORMAT)<EOL><DEDENT>else:<EOL><INDENT>logging.basicConfig(level=level, format=LOGGING_FORMAT)<EOL><DEDENT>
Prepare root logger
    :param verbose: integer greater than 0 to indicate verbosity level