Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0 Logcat continuously showing messages and does not stop

When I start debugging my App in Android Studio 3.0 and open the Logcat, it displays so many messages and warnings, but the problem is, it never stops, even when the debugging is completed and the App is terminated, it still prints so many messages continuously. Can anybody help???

like image 475
geekFromPeshawar Avatar asked Nov 27 '17 08:11

geekFromPeshawar


People also ask

What is verbose in Android Logcat?

Verbose: Show all log messages (the default). Debug: Show debug log messages that are useful during development only, as well as the message levels lower in this list. Info: Show expected log messages for regular usage, as well as the message levels lower in this list.

How do I stop Logcat from clearing?

Prevent clearing the log when the app crashes By default when the app got crashed the logcat clear's in the android studio. To prevent this, click the right end chooser(Filter Configuration chooser) in the logcat tab then select Edit Filter Configuration option and enter current app name and package name.

Where are Logcat logs stored?

The Android logging system provides a mechanism for collecting and viewing system debug output, which then can be viewed and filtered by the logcat command. ADB will start collecting logs and start writing them to a text file. Navigate to c:/adb/on your file explorer. The file "txt" will now contain the logs.


1 Answers

Since you are not debugging or running any application on the device you have connected. Hence, the logcat is displaying the logs generated by all the apps in the device as well as the system logs. Which makes the log cat window go nuts.

What you can do is. On the top right corner of the log cat window, there is a filter config combo box. Select or create a filter of your own to filter out relevant logs. enter image description here

enter image description here

The filter could be created using any details, it could be a process ID (PID), the tag name e.g I/ActivityManager: where I stands for Info, V for Verbose, D for Debug and so on.

like image 134
Kshitij Avatar answered Sep 27 '22 22:09

Kshitij