Changing the log level for a selenium node running in docker
<p>Our team is deploying a selenium grid using docker. The default log level appears to be set to INFO. I'd like to set it to something higher, SEVERE or turn them completely off. I've made three attempts, but so far, to no effect.</p>

<p>Method One:</p>

<p>From the selenium client, I've tried  to set LoggingPreferences on the RemoteWebDriver within DesiredCapabilities:</p>

<pre><code>DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox();
LoggingPreferences logs = new LoggingPreferences();
logs.enable(LogType.BROWSER, Level.SEVERE);
logs.enable(LogType.CLIENT, Level.SEVERE);
ogs.enable(LogType.DRIVER, Level.SEVERE);
logs.enable(LogType.SERVER, Level.SEVERE);
desiredCapabilities.setCapability(CapabilityType.LOGGING_PREFS, logs);
desiredCapabilities.setCapability(FirefoxDriver.PROFILE, profile);
WebDriver driver = new RemoteWebDriver(new URL(host:4444/wd/hub"), 
                                           desiredCapabilities);
</code></pre>

<p>Method 2: I tried to change the profile preferences:</p>

<pre><code>FirefoxProfile profile = new FirefoxProfile();

profile.setPreference("webdriver.log.driver", "OFF");
profile.setPreference("webdriver.log.file","/dev/null");
</code></pre>

<p>Method 3: I tried to modify config.json in the container located in /opt/selenium/config.json:</p>

<pre><code>{
  "capabilities": [
    {
      "browserName": "*firefox",
      "maxInstances": 1,
      "seleniumProtocol": "Selenium"
    },
    {
      "browserName": "firefox",
      "maxInstances": 1,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration": {
      "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
      "maxSession": 1,
      "port": 5555,
      "register": true,
      "registerCycle": 5000,
      "logLevel":FATAL
  }
}
</code></pre>

<p>So far I've been unable to do anything that has altered the logging behavior. </p>