Logcat command-line tool  |  Android Studio  |  Android Developers

Logcat is a command-line tool that dumps a log of system messages, including stack traces, when the device throws an error and sends messages that you have written from your app with the Log class.