Android - (ADB) Logcat

> Android

1 - About

Logs in Android

3 - Management

3.1 - Reading and Writing Logs

public static final String LOG_TAG = ClassName.class.getSimpleName();
// Verbose
Log.v(LOG_TAG,"String");
Advertising

3.2 - View

You can use:

to view logs.

3.2.1 - Monitor

3.2.2 - ADB Logcat

adb logcat

If you're overwhelmed by logs, you can stop ADB logcat while it's running by hitting CTRL+Z.

Doc: ADB logcat

4 - Documentation / Reference

5 - Library

  • Pidcat. An update to Jeff Sharkey's excellent logcat color script which only shows log entries for processes from a specific application package.
Advertising