Logs
It’s common to add debug logging information to an app when it’s being developed. Unfortunately, many of these debug logs make it into production.
To see all of the logging information, simply type adb logcat
from the command line. There is such a wealth of information that it helps to save it out to a file using adb logcat > logging.txt
to get some idea of what’s in the logs.
We can filter the logs using LogCat that can be run from the command line. LogCat also comes with the Dalvik Debug Monitor Server (DDMS) that is part of the Android SDK. Ideally, because of the volume of logs, we’d want to filter the logs based on log messages coming from the application we’re looking at. See Figure 8-2 for the log messages from com.riis.logfiles. ...
Get Bulletproof Android™: Practical Advice for Building Secure Apps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.