Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Logcat from automatically clearing

Tags:

android

logcat

I am using Android Studio 1.2.2 and Logcat sometimes automatically clears itsself after my app crashes.

How can I prevent this behaviour?

like image 939
hariom Avatar asked Jul 27 '15 08:07

hariom


People also ask

Why is my Logcat empty Android Studio?

Go to the File option > click on “INVALIDATE CACHES/RESTART” then a dialog box will pop up, Select the “INVALIDATE CACHES/RESTART” button. This will automatically restart and build the index of android studio.

How do I pause Logcat?

you just click on the line three times and you can selectd the line , it will stops scrolling.

What is Logcat usage in Android?

Logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that you have written from your app with the Log class. This page is about the command-line logcat tool, but you can also view log messages from the Logcat window in Android Studio.

What is the purpose of Logcat window?

The Logcat window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app with the Log class. It displays messages in real time and keeps a history so you can view older messages.


2 Answers

yes, Because it filters Log of our application. And when app crashes LogCat has no app to filter.

Also remember that LogCat has previous messages that we can get again by setting NO FILTER to LogCat.No Filter

Just select No Filters. It will give your messages again :-)

like image 151
Azim Ansari Avatar answered Sep 26 '22 13:09

Azim Ansari


Edit Filter Configuration ->Add your package name

enter image description here

like image 35
Renjith Avatar answered Sep 24 '22 13:09

Renjith