Appium logs

Appium logs are generated by the Appium server and contain detailed record of your Appium test session execution. They can help you troubleshoot any errors if your test session failed. Appium logs are enabled by default. To disable appium logs, use the browserstack.appiumLogs capability.

Capability Description Value
browserstack.appiumLogs Capture raw Appium logs for your test. true/false
Default: true

Example :

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

Access Appium logs from the dashboard:

The Appium server logs can be viewed from the test sessions details page on the App Automate Dashboard. You can download the Appium logs using View Raw Appium Logs link.

dashboard

Sample Appium logs for a test session :

test

Access Appium logs using REST API:

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" -X GET "https://api-cloud.browserstack.com/app-automate/builds/<build-id>/sessions/<session-id>/appiumlogs"