def setup_logger ():

    global logger
    if options['log']:
        # Write the logs to files.
        if not options['log_dest']:
            # If no destination is explicitly given, use the defaults.
            logger = loggers.file_logger(options['name'])
        else:
            # Otherwise, use the specified value.
            logger = loggers.file_logger(options['name'], path=options['log_dest'])
    else:
        # A dummy logger.  It won't record anything to file.
        logger = loggers.stream_logger(1)
Basic test with all schema versions agreeing
dataset/ETHPy150Open univ-of-utah-marriott-library-apple/management_tools/scripts/executable_bundler.py/setup_logger--crossover with--dataset/ETHPy150Open datastax/python-driver/tests/unit/test_control_connection.py/ControlConnectionTest.test_wait_for_schema_agreement