UPDATED How to write logs to a file in the application that testers check?
Logging is necessary when any errors appear or are thrown out of the application.
UPDATED How to write logs to a file in the application that testers check?
Logging is necessary when any errors appear or are thrown out of the application.
The first option is to connect the device to a computer that has previously downloaded adb and save the log to a file after an error appears with the command:
adb logcat> logcat.txt
The second option, if the device has a ROOT use the application from GooglePlay CatLog or Log collector and the like.
The third option is to use a service that sends logs to the server immediately, which can be viewed in real time, for example, the Hockey App or Acra .
Another option is to use the Hyperion-Android library and its module 'com.willowtreeapps.hyperion:hyperion-crash:0.9.24' , which after the appearance of an error will display and use it.
Source: https://ru.stackoverflow.com/questions/865297/
All Articles