code: def setLoggingFromOptions(options):
      
      formatStr = ' '.join([socket.gethostname(), '%(asctime)s', '%(threadName)s',
                            '%(levelname)s', '%(name)s:', '%(message)s'])
      logging.basicConfig(format=formatStr)
      rootLogger.setLevel(defaultLogLevel)
      if options.logLevel is not None:
          setLogLevel(options.logLevel)
      else:
          # Ensure that any other log level overrides are in effect even if no log level is explicitly set
          setLogLevel(getLogLevelString())
      logger.debug("Root logger is at level '%s', 'toil' logger at level '%s'.",
                  getLogLevelString(logger=rootLogger), getLogLevelString(logger=toilLogger))
      if options.logFile is not None:
          addLoggingFileHandler(options.logFile, rotatingLogging=options.logRotating)
          logger.debug("Logging to file '%s'." % options.logFile)
docs: Sets the logging from a dictionary of name/value options.