Device Logs

Leverage the full range of debugging tools provided by BrowserStack to easily debug your test automation for native and hybrid mobile apps.

Device Logs capture all the details of your Device test. You can view these logs using the Device Logs tab in the App Automate Dashboard). You can also retrieve a link to download the Device Logs by using our REST API.

To enable the Device Logs use the API parameter deviceLogs with the value true in the execute test API:

curl -X POST "https://api-cloud.browserstack.com/app-automate/earlgrey/build" -d "{"devices": ["iPhone 8 Plus-11"], "appDir": "bs://<hashed appid>", "deviceLogs" : "true"}" -H "Content-Type: application/json" -u "YOUR_USERNAME:YOUR_ACCESS_KEY"

Raw Device Logs

The Device logs can be retrieved using the REST API.

curl -u YOUR_USERNAME:YOUR_ACCESS_KEY https://api.browserstack.com/app-automate/earlgrey/builds/<build-id>/sessions/tests/<test-id>/devicelogs

We're sorry to hear that. Please share your feedback so we can do better







Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better







Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Talk to an Expert