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 :

desired_caps = {
    'browserstack.appiumLogs': 'false'
}
DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.appiumLogs", "false");
desired_cap = {
	'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");

View appium logs on the dashboard:

Click on the “View Raw Appium Logs” link to download the Appium logs.

View raw appium logs on the dashboard

Appium logs for a sample test :

Appium Logs for a sample test session

Import appium logs using REST API:

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

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