Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy

Appium logs

Appium logs are generated by the Appium server and contain a detailed record of your Appium test session execution. They can help you troubleshoot any errors if your test session fails. Appium logs are enable by default.

Appium logs are available on the BrowserStack dashboard for 30 days. These logs will be deleted after 30 days from the day they were generated.

To disable Appium logs, use the capability as shown below.

If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:

Capability Description Value
appiumLogs Capture raw Appium logs for your test. true, false
Default: true
browserstack.yml
Copy icon Copy snippet

BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.

Use the following code snippet to set the Appium logs capability to false:

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

Example :

DesiredCapabilities capabilities = new DesiredCapabilities();
HashMap<String, Object> browserstackOptions = new HashMap<String, Object>();
browserstackOptions.put("appiumLogs", "false");
var capabilities = {
	'bstack:options' : {
		"appiumLogs" : "false",

	},
}
AppiumOptions capabilities = new AppiumOptions();
Dictionary<string, object> browserstackOptions = new Dictionary<string, object>();
browserstackOptions.Add("appiumLogs", "false");
$caps = array(
    'bstack:options' => array(
        "appiumLogs" => "false",
    ),
)
desired_cap = {
	'bstack:options' : {
		"appiumLogs" : "false",
	},
}
capabilities = {
    'bstack:options' => {
        "appiumLogs" => "false",
    },
}
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 view and download the Appium logs using Other Logs > Appium > View Raw Logs or Download Logs.

Appium Logs on Dashboard

Sample Appium logs for a test session :

Appium Logs for a sample test session

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"

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
Download Copy