Capturing Device Logs for Android
Tutorial
·
Beginner
·
+0XP
·
20 mins
·
(15)
Unity Technologies

In this tutorial, you will learn how to capture Android device logs using Unity and Android Studio. Capturing device logs allows you to troubleshoot your app’s behavior in the mobile device.
Languages available:
1. Overview
In this tutorial, you will learn how to capture Android device logs using Unity and Android Studio. Capturing device logs allows you to troubleshoot your app’s behavior in the mobile device.
Before you begin, you will need to have a working Android device and a computer with Unity and Android Studio installed.
IMPORTANT: If you are collecting logs for an issue you have reported, please ensure that you are able to reproduce the reported issue.
2. Capture Android device logs
Follow the video or written instructions below to capture device logs on your Android device using either the Unity Editor or Android Studio.
!!!IMPORTANT NOTE!!! Some android devices may require you to enable USB debugging to capture the logs. If you do not see the logs being shown in your computer, you can enabled the USB debugging using these instructions.
To capture your device logs through Unity, use the following instructions:
1. Connect the Android device to your computer using USB. Allow the device to trust your connected computer.
2. Open the Unity Editor.
3. To install Android Logcat from the package manager, go to Window > Package Manager, then install the package from the Unity Registry.
4. To open the Android Logcat, go to Window > Analysis > Android Logcat.
5. Save the captured logs.
To capture your device logs through Android Studio, use the following instructions:
1. Connect the Android device to your computer using USB. Make the device trust your connected computer.
2. Open Android Studio.
3. To open LogCat, go to View > Tool Window > Logcat.
4. Save the capture logs.