Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio see whole LogCat log

Is there any way of seeing the full logcat log? I have an error in my app but I don't have time to see it because lots of text appears after the error and goes past the limit of lines in the logcat. So even if I go to the top the error is already gone.

like image 989
Capricious frog Avatar asked Dec 13 '25 18:12

Capricious frog


2 Answers

You should use the filter in Android Studio. Here are some options you have:

  1. Limit the output only to your app:

enter image description here

  1. Limit the output only to error messages:

enter image description here

  1. Add custom TAG to the place where the error is thrown and filter by that:

    Log.e(custom_tag, message, throwable);

Also, if you don't want the logcat to be scrolled automatically, just select a piece of output in the middle (or scroll up).

like image 94
Micer Avatar answered Dec 16 '25 08:12

Micer


Ok, so while I was doing some testing I found the solution. I did it by selecting so it only shows errors, that way I don't see the other messages.

Edit:

To change to error mode select LogCat at the bottom of the screen (or press Alt + 6) and then in the third drop down select the "Error" option.

enter image description here

like image 33
Capricious frog Avatar answered Dec 16 '25 06:12

Capricious frog