code: def setLoggingFromOptions(options):
      
      #We can now set up the logging info.
      if options.logLevel is not None:
          setLogLevel(options.logLevel) #Use log level, unless flags are set..
  
      if options.logOff:
          setLogLevel("OFF")
      elif options.logInfo:
          setLogLevel("INFO")
      elif options.logDebug:
          setLogLevel("DEBUG")
  
      logger.info("Logging set at level: %s" % logLevelString)
  
      if options.logFile is not None:
          addLoggingFileHandler(options.logFile, options.logRotating)
  
      logger.info("Logging to file: %s" % options.logFile)
docs: Sets the logging from a dictionary of name/value options.