7

I'm currently developing on an Android 2.3.4 device. I've got root access to the file system, and I'm looking for the location of the system log files (like /var/log) so that I can delete them, but could not find these files on Android.

Does someone know where these files are located?

eldarerathis
  • 36,868
  • 16
  • 145
  • 176
truell
  • 71
  • 1
  • 1
  • 2

4 Answers4

8

LogCat messages are not stored in files, but rather in circular memory buffers. You may clear these buffers using the following command:

adb logcat -c

Source: Using LogCat

Volo
  • 181
  • 1
  • 6
6

On a Samsung *#9900#, this will take you to SysDump.
Select 2nd option(Delete Dumpstate/Logcat).

enter image description here

Manu
  • 3,063
  • 7
  • 23
  • 43
Phillip
  • 59
  • 1
  • 1
2

Here is an old question on StackOverflow about the same thing. It doesn't look like there's any way to view them directly, but there are various apps that can do it.

SaintWacko
  • 1,483
  • 1
  • 12
  • 19
2

Yes, you can delete log files on your device...

Using the app SD Maid (Explorer tab) on a rooted Samsung Galaxy Note 1 (N7000), Android 4.1.2, LT5 Build, I found 900+ log files in /data/log. After clearing the literally hundreds of dumpstate* files, I got my internal memory back from only 207mb up to 1040+ mb! Now I can complete all the missing updates. These files were dated back over more than 1 year and seemed to serve no valid function any more. Afterwards the device booted, was faster and no functionality was lost. Looking at the dates of these files they coincided with some system crashes and SD card mounting problems I had received in the past.

But in order to even see these files you will need a rooted device.

Using the clean master app on a rooted device also found a lot of files which could be deleted.

Here are the links to the Apps in Google Play Store as requested

Grockle
  • 21
  • 2