ADBLogsSafe
adb logcat
Stream live Android system logs
What It Does
Streams continuous real-time diagnostic output from the Android log ring buffer.
Command Syntax
Terminal
$
adb logcat [options] [filterspecs]Parameters & Placeholders Breakdown
This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
[options]Command Flags / Optional ArgumentsOptional command flags that modify behavior, such as "-r" to reinstall or "-d" to allow downgrade.
Real-world value:-r -g
Command syntax:
adb install -r -g app.apk[filterspecs]FILTERSPECS ParameterReplace this placeholder with your specific filterspecs value.
Real-world value:your-filterspecs
Command syntax:
adb logcat [options] your-filterspecsUsage Examples
$
adb logcat$
adb logcat -v time$
adb logcat *:E$
adb logcat -s ActivityManager:I MyAppTag:DOptions & Flags
| Flag / Parameter | Description |
|---|---|
| -v <format> | Sets log message formatting (brief, process, tag, raw, time, threadtime). |
| -s | Sets default filter to silent so only explicitly specified tags print. |
| -d | Dump current buffer to stdout and exit without streaming. |
| -c | Clear (flush) log ring buffers and exit. |
Prerequisites & Requirements
- Device connected
Related Commands
Found an error or missing flag for
adb logcat?Submit a correction or request additional examples on GitHub.
Having issue? Contact @mkr_infinity
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.