title: Disable logging in Selenium Chrome driver
body: <p>I use selenium with Scrapy and it produces way too much logs.
  <a href="https://i.stack.imgur.com/LBrUE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBrUE.png" alt="enter image description here"></a>
  I tried several solutions offered at SO before but none of them worked.
  Basically I tried disabling it in <code>options</code> and passing <code>service-argument</code> to write log into file. In both cases the log is still printed while executed. How do I fix it?</p>
  
  <pre><code>options = Options()
  options.headless = True
  # options.add_argument('--disable-logging')
  self.driver = webdriver.Chrome(r'C:\Python3\selenium\webdriver\chromedriver_win32\chromedriver.exe', chrome_options=options, service_args=["--verbose", "--log-path=D:\\qc1.log"])   
  </code></pre>
  
  <p>I also tried settings service-path to <code>NULL</code> (I run windows)</p>
  
  <pre><code>self.driver = `webdriver.Chrome(r'C:\Python3\selenium\webdriver\chromedriver_win32\chromedriver.exe', chrome_options=options, service_log_path='NUL')`
  </code></pre>
  
  <p><strong>SOLUTION:</strong>
  Thanks to - @Manmohan_singh and  <a href="https://stackoverflow.com/a/47649732/7209826">The only working answer so far</a>
  add this </p>
  
  <pre><code>chrome_options.add_argument("--log-level=3") to shut the logging.
  self.driver = webdriver.Chrome(r'C:\Python3\selenium\webdriver\chromedriver_win32\chromedriver.exe', chrome_options=options) 
  </code></pre>
  
  <p>Hope this will be useful in future, since none of the presumably duplicate topics did help me and Stack moderators do not seem to read the posts carefully.      </p>