How to add logcat to ACRA

I am trying to add my magazines to ACRA.

I followed this link.

There they stated

adb logcat -t 200 -v time

This results in 200 logcat lines with date, call time, priority / tag and PID of the creation process.

But I don't know where to add this to ACRA code so that it updates my Google Docs with these 200 lines of logcat

+4
source share
2 answers

The only thing you need to do is add the READ_LOGS permission to your manifest.

<manifest ...> ... <uses-permission android:name="android.permission.READ_LOGS"></uses-permission> </manifest> 

When you do this, ACRA will automatically add logcat information to your crash reports. The information that is added automatically is similar to the information you get when you run adb logcat -t 200 -v time during a crash.

+7
source

If you can receive reports and cannot receive only one column, select this:

  • Make sure you have the requested permission ( android.permission.READ_LOGS ) in the manifest file
  • Make sure that if you use the customReportContent attribute in the @ReportCrashes annotation, you remember to add the LOG_CAT field
  • Make sure your Google Docs template is associated with a column
  • And this is not possible, but check that your logcat log is not empty :) write something in the log before the failure.
0
source

Source: https://habr.com/ru/post/1379701/


All Articles