Device logs

Device logs are system logs specific to your application generated by iOS or Android. They can help you access your application logs and are especially helpful if the application under test crashes during test execution.

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 :

DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.deviceLogs", "false");
var capabilities = {
	'browserstack.deviceLogs': 'false'
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("browserstack.deviceLogs", "false");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("browserstack.deviceLogs", "false");
desired_cap = {
	'browserstack.deviceLogs': 'false'
desired_caps = {
    'browserstack.deviceLogs': 'false'

Access device logs from the dashboard:

The device logs can be viewed from the test sessions details page on the App Automate Dashboard


You can also download device logs using View Raw Device Logs link :


Access device logs using REST API:

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" -X GET "<build-id>/sessions/<session-id>/devicelogs"