Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I erase the old data from logcat?

When I execute the command

adb logcat

while running the android emulator, all of the old logs blow past and so I figure they are stored in a file somewhere. Is there a command I can run to clear the logs and start fresh? If not, is there some other way to do this?

like image 961
aarona Avatar asked Apr 17 '10 05:04

aarona


People also ask

How do I clear all logs on android?

Open the phone dialer, dial *#9900# and select the 2nd option “Delete dumpstate/logcat” in the prompted menu. Select ok to 'Delete Dump' and hit exit. This will restore heaps of storage space by deleting all the log files in the device memory.

How do I restart Logcat?

Solution 1: Restarting Logcat You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.

Where are Logcat files stored?

They are stored as circular memory buffers on the device. If you run "adb logcat > myfile" on your host system, you can retrieve the content into a file.


1 Answers

Have you tried this?

 adb logcat -c 

https://developer.android.com/studio/command-line/logcat.html

like image 51
Pentium10 Avatar answered Oct 01 '22 01:10

Pentium10