Device logs
Device logs are system logs pertinent to your application and tests generated by iOS or Android. They can help you troubleshoot any errors if your test has failed.
Device logs are enabled by default. To disable device logs, use the browserstack.deviceLogs
capability.
Capability | Description | Value |
---|---|---|
browserstack.deviceLogs |
Capture device logs for your test. | true, false Default: true |
Example :
desired_caps = {
'browserstack.deviceLogs': 'false'
}
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.deviceLogs", "false");
desired_cap = {
'browserstack.deviceLogs': 'false'
}
var capabilities = {
'browserstack.deviceLogs': 'false',s
}
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("browserstack.deviceLogs", "false");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("browserstack.deviceLogs", "Samsung Galaxy S8");
View device logs on the dashboard:
The device logs can be found on the sessions details page on the App Automate Dashboard
You can also use the “View Raw Device Logs” link to download device logs from the dashboard :
Import device logs using REST API:
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" https://api-cloud.browserstack.com/app-automate/builds/<build-id>/sessions/<session-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
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!