title: System.NullReferenceException when reading browser log with selenium
body: <p>I am writing using <code>C#</code>, <code>selenium</code> <code>chromeWebDriver</code>. When I try to read the browser console log file with <code>selenium</code> I get:</p>
  
  <blockquote>
    <p>System.NullReferenceException: 'Object reference not set to an instance of an object.'</p>
  </blockquote>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      ChromeOptions options = new ChromeOptions();
      options.SetLoggingPreference(LogType.Browser, LogLevel.Warning);
      IWebDriver driver = new ChromeDriver(options);
  
      driver.Url = "https://www.google.com/";
  
      var entries = driver.Manage().Logs.GetLog(LogType.Browser); // System.NullReferenceException
      foreach (var entry in entries)
      {
          Console.WriteLine(entry.ToString());
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/iEkKC.png" alt="enter image description here"></p>