def setLoggingFromOptions(options):
    """
    Sets the logging from a dictionary of name/value options.
    """
    logging.basicConfig(format="%(asctime)s %(levelname)s:%(name)s: %(message)s")
    rootLogger.setLevel(defaultLogLevel)
    if options.logLevel is not None:
        setLogLevel(options.logLevel)
    logger.info(getLogLevelString() % "Logging set at level: %s")
    if options.logFile is not None:
        addLoggingFileHandler(options.logFile, options.logRotating)
        logger.info("Logging to file: %s" % options.logFile)
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/lib/bioio.py/setLoggingFromOptions/swapped operands of `%`