Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access old/past logs from logcat or Android

Tags:

android

logcat

Is it possible to get old logs (such as logs of one hour or one day before) of an Android device?

I am asking this because sometimes testers encounter some errors. The Android developer says that the error is related to the device's hardware. To prove his claim, he has to show the error inside the logs. But he says that when attaching an Android device to his computer, he cannot see past logs.

like image 413
Mert Nuhoglu Avatar asked Oct 03 '22 01:10

Mert Nuhoglu


2 Answers

You can't, but there are libraries like ACRA which will automatically send you detailed crash reports including the user LogCat if you want (disabled by default).

If you don't want to use a library, when an error occurs you can also write the content of the Logcat to a file that your testers can easily find (like in a log folder of the SD card). It shouldn't be very hard to implement.

like image 102
Dalmas Avatar answered Oct 11 '22 14:10

Dalmas


I think there is no way you can access the past logs, unless you save them.

Ask your testers to save the Log the moment they see the issue.

like image 43
Nargis Avatar answered Oct 11 '22 14:10

Nargis