title: Enable "preserve log" with chromedriver
body: <p>Looking to enable "Preserve log" with chromedriver.
  <a href="https://sites.google.com/a/chromium.org/chromedriver/capabilities" rel="noreferrer">https://sites.google.com/a/chromium.org/chromedriver/capabilities</a> loggingPrefs points to google code archive page and is not very helpful.</p>
  
  <p>My overall goal is to parse logs during test execution looking for errors, but logs get cleared on page navigation which may happen multiple times during test.</p>
  
  <p>I can think of couple non-ideal workarounds:</p>
  
  <ul>
  <li>parse log on every page navigation</li>
  <li>log to file and parse log later</li>
  </ul>
  
  <p>Both are not ideal, so looking for the easiest way.</p>
  
  <p>This question is similar to <a href="https://stackoverflow.com/questions/40726192/enable-preserve-log-in-chrome-programmatically-using-chromedriver">Enable &quot;Preserve log&quot; in chrome programmatically using chromedriver</a> - but over there the answer seems to be around logging redirects via performance logging, not preserving log on navigation.</p>