title: How do I disable Firefox logging in Selenium using Geckodriver?
body: <p>I am using:</p>
  
  <ul>
  <li>firefox version 50.1.0</li>
  <li>geckodriver version 0.11.1</li>
  <li>selenium-java 3.0.1</li>
  </ul>
  
  <p>I have tried</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.setPreference("webdriver.log.browser.ignore", true);
  profile.setPreference("webdriver.log.driver.ignore", true);
  profile.setPreference("webdriver.log.profiler.ignore", true);
  FirefoxDriver driver = new FirefoxDriver();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>LoggingPreferences preferences = new LoggingPreferences();
  preferences.enable(LogType.BROWSER, Level.OFF);
  preferences.enable(LogType.CLIENT, Level.OFF);
  preferences.enable(LogType.DRIVER, Level.OFF);
  preferences.enable(LogType.PERFORMANCE, Level.OFF);
  preferences.enable(LogType.SERVER, Level.OFF);
  DesiredCapabilities capabilities = DesiredCapabilities.firefox();
  capabilities.setCapability(CapabilityType.LOGGING_PREFS, preferences);
  FirefoxDriver driver = new FirefoxDriver(capabilities);
  </code></pre>
  
  <p>neither of these methods does anything to stop logging.
  Here is console output if that helps somehow:</p>
  
  <ul>
  <li>first method: <a href="http://pastebin.com/23nate2G" rel="noreferrer">http://pastebin.com/23nate2G</a></li>
  <li>second method: <a href="http://pastebin.com/NwmWEeXT" rel="noreferrer">http://pastebin.com/NwmWEeXT</a></li>
  </ul>
  
  <p>For those wondering, i have log4j 1.2.17 in my <code>pom.xml</code> but have no <code>log4j.properties</code> or <code>log4j.xml</code> and I do not use it at all.</p>
  
  <hr>
  
  <p>To clarify: when I say logging I mean the console output in IntelliJ IDEA. I am using Java.</p>