Unity: Getting Android Logs

Having access to the Android logs of a Unity application you’re currently working on is vital. This is a very short, minimalistic step-by-step guide on how to get the Android logs into Unity.

1. Setup

Thankfully Unity makes this task very easy as there’s a ready-to-use Android Logcat package available. To install it, follow these steps:

  1. Open the package manager (Window -> Package Manager)
  2. Search for the Android Logcat package
  3. Select the package and hit Install

2. Usage

Fortunately, the Android Logcat package is really well integrated and automatically connects & disconnects to/from the phone. All you have to do is bring up the Android Logcat window by clicking Window -> Analysis -> Android Logcat.

The logcat viewer provides a lot of functionalities to make working with Android logs easier. The most notable one is the No Filter dropdown. This allows to filter for messages originating from the Unity Player app currently running.

There you go - Android logs right within Unity!

comments powered by Disqus