How to Read Android Logcat: Levels, Tags and Filters Explained
Logcat is the single most useful window into an Android device, and also one of the most intimidating. Open it for the first time and thousands of lines scroll past every minute: system services, Bluetooth, the launcher, the keyboard and, somewhere in there, your app.
The good news is that every line follows the same structure. Once you can read one line, you can read them all, and a few filters turn the waterfall into a short list. This guide explains the format, the priority levels, tags, and how to filter in practice. We will use ADB Kit for the hands-on part because it streams logcat in the browser, but the concepts apply to any logcat viewer.
What logcat actually is
Android keeps several in-memory ring buffers of log messages. Apps write to them with the Log class (Log.d, Log.e and so on), and the system writes to them too. Logcat is the tool that reads those buffers.
The main buffers you will meet are:
- main: regular app logs, the default
- system: messages from the Android system
- crash: crash reports, including Java stack traces
- events and radio: specialised system events and telephony
Because the buffers are rings, old lines fall off the end. If a crash happened an hour ago on a busy device, it may already be gone. That is why it pays to start logging before you reproduce a bug.
Anatomy of a logcat line
The default output format (called threadtime) looks like this:
10-04 14:32:07.418 4821 4850 E MyApp : Upload failed: timeout after 30000 ms
Read it left to right:
- Date and time (
10-04 14:32:07.418): when the message was written, down to milliseconds. - PID (
4821): the process ID. Every running app has one, and it changes each time the app restarts. - TID (
4850): the thread ID inside that process. Useful when you want to know if something ran on the main thread. - Priority (
E): how serious the message is. - Tag (
MyApp): a short label chosen by whoever wrote the log, usually the class or module name. - Message: the actual text.
Stack traces appear as several consecutive lines with the same timestamp, PID and tag. Read them top-down: the first line names the exception, and the first at line that mentions your own package is usually where to look.
The six priority levels
From lowest to highest:
| Letter | Level | Typical use |
|---|---|---|
| V | Verbose | Very detailed tracing, usually off in release builds |
| D | Debug | Developer diagnostics |
| I | Info | Normal milestones: “user signed in”, “sync complete” |
| W | Warning | Something unexpected that did not break anything yet |
| E | Error | Something failed |
| F | Fatal | The process is about to die |
A filter at a given level shows that level and everything above it. Setting the level to W hides V, D and I, which is the fastest way to remove most of the noise while hunting a crash.
Tags: your best filter
Tags are what make logcat searchable. Your own app should use consistent tags, and the system uses well-known ones. A few worth recognising:
- AndroidRuntime: Java and Kotlin crashes, with the
FATAL EXCEPTIONheader and stack trace - ActivityManager: app starts, process deaths and “not responding” (ANR) reports
- libc or DEBUG: native crashes in C or C++ code
When an app “just closes”, searching for FATAL EXCEPTION or filtering on the AndroidRuntime tag finds the reason in seconds.
The command-line filter syntax
If you use command-line ADB, filters are written as tag:priority pairs. For example:
adb logcat ActivityManager:I MyApp:D *:S
This shows ActivityManager at Info and above, MyApp at Debug and above, and silences (S) everything else. For a quick list of the commands you will use most, see our ADB cheat sheet.
How to read logcat in your browser with ADB Kit
You do not need a terminal or an IDE to follow along.
- Enable Developer options and USB debugging on the phone. Our guide on using ADB in your browser with WebUSB covers this in detail.
- Open adbkit.com/app in Chrome or Edge and connect the phone over USB. Approve the debugging prompt on the phone. If you prefer no cable, follow ADB over Wi-Fi with ADB Kit, which uses a small local agent.
- Open the logcat view. Lines stream live as the device writes them.
- Set a level filter. Start at Warning when chasing a crash.
- Add a text or tag filter, such as your app’s tag or
FATAL EXCEPTION. - Reproduce the bug on the phone and watch the matching lines appear.
- Export the filtered log and attach it to your bug report.
ADB Kit is free, needs no account and runs locally, so the log stays between your browser and the device.
A practical workflow for finding a crash
- Clear your head, not the log. Start streaming before you touch the app.
- Note the time. Write down roughly when you trigger the bug, so you can jump to that timestamp.
- Filter to Warning and above. Look for E and F lines near your timestamp.
- Find the first error, not the last. One failure often causes a cascade. The earliest related error is usually the cause.
- Follow the PID. Once you find your app’s PID, focus on lines from that process. If the PID changes, the app restarted, which itself is a clue.
- Save the evidence. Export the log, take a screenshot or a short screen recording, and write the steps to reproduce. Our post on better Android bug reports for QA testers shows how to package it all.
Common mistakes
- Filtering too early. If you filter only on your tag, you miss system messages such as an ANR or an out-of-memory kill. Widen the filter when the cause is not obvious.
- Trusting Verbose in release builds. Many apps strip V and D logs from production builds, so an empty filter does not mean nothing happened.
- Logging sensitive data. Logs can be read by anyone with debugging access to the device. Never log passwords, tokens or personal data in your own apps.
- Waiting too long. Buffers roll over. Capture the log right after the bug occurs.
Summary
Every logcat line contains a timestamp, PID, TID, priority, tag and message. Use the priority level to cut noise, tags to focus, and the PID to follow a single app run. Start capturing before you reproduce, look for the first error, and export what you find.
Ready to try it? Open ADB Kit and stream logcat from your phone in the browser, with filters and export built in.
How to install ADB Kit
- Android: Open Google Play, search for “ADB Kit” or tap the Google Play badge below, then tap Install. Updates arrive automatically through Google Play.
- iPhone / iPad (beta): The iOS version is in beta on TestFlight. Install Apple’s TestFlight app from the App Store, then open the TestFlight link below on your iPhone and tap Accept → Install. If the beta is full, check back later.
- Web: Nothing to install: open the web app in Chrome, Edge or your browser using the badge below.
Coming soon: App Store.
💡 Tip: only install ADB Kit from the official stores or the links on this page, never from unknown APK/IPA mirrors. See every feature on the ADB Kit page.
FAQ
What do V, D, I, W, E and F mean in logcat?
They are priority levels, from lowest to highest: Verbose, Debug, Info, Warning, Error and Fatal. A filter set to a level shows that level and everything above it, so Warning shows W, E and F lines.
Why is my logcat full of messages from other apps?
Logcat collects logs from the whole system, not just your app. Filter by tag, by process ID or by package so you only see the lines that matter, and drop the level to Warning when you are hunting a crash.
Can I read logcat without installing Android Studio?
Yes. With USB debugging enabled you can stream logcat in the browser with ADB Kit over WebUSB, filter it and export it, without installing platform-tools or an IDE.