{"action":"created","issue":{"url":"https://api.github.com/repos/kevinsawicki/spectron/issues/5","labels_url":"https://api.github.com/repos/kevinsawicki/spectron/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/kevinsawicki/spectron/issues/5/comments","events_url":"https://api.github.com/repos/kevinsawicki/spectron/issues/5/events","html_url":"https://github.com/kevinsawicki/spectron/issues/5","id":118502064,"number":5,"title":"How to access Electron logs","user":{"login":"emorikawa","id":489001,"avatar_url":"https://avatars.githubusercontent.com/u/489001?v=3","gravatar_id":"","url":"https://api.github.com/users/emorikawa","html_url":"https://github.com/emorikawa","followers_url":"https://api.github.com/users/emorikawa/followers","following_url":"https://api.github.com/users/emorikawa/following{/other_user}","gists_url":"https://api.github.com/users/emorikawa/gists{/gist_id}","starred_url":"https://api.github.com/users/emorikawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emorikawa/subscriptions","organizations_url":"https://api.github.com/users/emorikawa/orgs","repos_url":"https://api.github.com/users/emorikawa/repos","events_url":"https://api.github.com/users/emorikawa/events{/privacy}","received_events_url":"https://api.github.com/users/emorikawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kevinsawicki/spectron/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-24T00:00:15Z","updated_at":"2015-12-13T21:05:16Z","closed_at":"2015-12-13T21:05:16Z","body":"I can't seem to access any logs from neither the browser process nor the render processes. Any ideas on how to do this?\r\n\r\nSelenium has a `/session/:sessionId/log` and `/session/:sessionId/log/types` endpoint that I'm successfully able to access via the `webdriver` `client.log()` and `client.logTypes()` APIs. `logTypes` resolves to an array with `['browser', 'driver']`.\r\n\r\nUnfortunately, the value of the logs coming out of the `browser` type is always empty. I can see that the app boots, and I can open the inspector console and see logs and enter more `console.log` commands, but nothing ever comes back when you request the logs via `client.log`.\r\n\r\n```javascript\r\nthis.app.start().then(()=> {\r\n  this.app.client.log(\"browser\").then(({value}) => {\r\n     console.log(value) // Always an empty []\r\n  })\r\n})\r\n```\r\n\r\nI've also tried putting that log polling function on an interval thinking that it wouldn't return anything until the app fully booted. It never returns any data.\r\n\r\nOn the flip side, polling `app.client.log(\"driver\")` returns all of the Selenium driver log data properly."},"comment":{"url":"https://api.github.com/repos/kevinsawicki/spectron/issues/comments/164298403","html_url":"https://github.com/kevinsawicki/spectron/issues/5#issuecomment-164298403","issue_url":"https://api.github.com/repos/kevinsawicki/spectron/issues/5","id":164298403,"user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"created_at":"2015-12-13T21:05:16Z","updated_at":"2015-12-13T21:05:16Z","body":"I've published `0.35.1` which contains two helpers, `getMainProcessLogs()` and `getRenderProcessLogs()` that I believe address what you were looking for.\r\n\r\nPlease let me know if they are missing anything, going to close out this issue for now, thanks for reporting this."}}