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

Device logs

Device logs help you access your application logs and are especially helpful if the application under test crashes during test execution.

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

Device logs are disabled by default. To enable them, use the deviceLogs parameter when running a build using the builds REST API.

Example cURL request to enable device logs:

Terminal
Copy icon Copy
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/flutter-integration-tests/v2/ios/build" \
-d '{"deviceLogs": true, "testPackage": "<test-package-id>",  "devices": ["iPhone 15 Pro Max-17"]}' \
-H "Content-Type: application/json"

Viewing device logs

You can access device logs for each executed test case on the App Automate dashboard or get them using the sessions REST API.

Select the Device Logs tab on the App Automate dashboard and click View Raw Device Logs.

Device Logs for Flutter tests

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 Check Circle