code: private void setLoggingLevel(DesiredCapabilities caps) {
          final LoggingPreferences logPrefs = new LoggingPreferences();
          logPrefs.enable(LogType.BROWSER, Level.ALL);
          logPrefs.enable(LogType.CLIENT, Level.OFF);
          logPrefs.enable(LogType.DRIVER, Level.OFF);
          logPrefs.enable(LogType.PERFORMANCE, Level.OFF);
          logPrefs.enable(LogType.PROFILER, Level.OFF);
          logPrefs.enable(LogType.SERVER, Level.OFF);
          caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);
      }
docs: Sets the logging level of the generated web driver.
  
  @param caps
  The web driver's capabilities
  @param level
  The logging level