title: Error messages and console logs in Electron?
body: <p>How do you view error messages and console logs in Electron during development? Also, is it possible for the logs to be written directly into a file? </p>
  
  <hr>
  
  <p><strong>Edit:</strong> Kind of like the errors and console logs displayed by Chrome's dev tools:
  <img src="https://i.stack.imgur.com/v48vx.png" alt="Screenshot of Chrome&#39;s dev tools">
  Except in Electron rather than Chrome.</p>