5.3.13. Logging Exception Messages

When exceptions occur, you can log them for debugging purposes with Android’s built-in logging mechanism. Android provides class Log (package android.util) with several static methods that represent messages of varying detail. Logged messages can be viewed in the LogCat tab at the bottom of the IDE as well as with the Android logcat tool. For more details on logging messages, visit

Get Android™ How to Program, Second Edition 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.