/install adb-logcat-reader
Pywayne ADB Logcat Reader
This module provides real-time Android device log reading capabilities via the adb logcat command.
Quick Start
from pywayne.adb.logcat_reader import AdbLogcatReader
# Create reader (default C++ backend)
reader = AdbLogcatReader()
# Start log capture and read
reader.start()
for line in reader.read():
print(line)
Use Python backend (alternative)
reader = AdbLogcatReader(backend='python') reader.start() for line in reader.read(): print(line)
# Stop and cleanup
reader.stop()
Initialization
# C++ backend (default, faster)
reader = AdbLogcatReader()
# Python backend (alternative, may be more compatible)
reader = AdbLogcatReader(backend='python')
Reading Logs
The read() method yields log lines incrementally as a generator, suitable for processing large logs or real-time monitoring.
# Process logs as they arrive
for line in reader.read():
# Filter, parse, store...
Properties
| Property | Description |
|---|---|
backend |
'cpp' or 'python' |
running |
Whether logcat process is running |
Methods
| Method | Description |
|---|---|
start() |
Start adb logcat process |
read() |
Generator yielding log lines |
stop() |
Stop logcat process |
get_backend() |
Get active backend type |
Backends
C++ Backend (Default)
- Uses native C++ implementation
- Faster performance for real-time streaming
- Better compatibility with adb logcat
Python Backend (Alternative)
- Uses Python subprocess to call adb
- More compatible across different environments
- Easier debugging and integration
Notes
- C++ backend is faster and recommended for production
- Python backend may be useful during development
stop()terminates adb logcat; useCtrl+Cto send interrupt signal- Logs are cleared automatically when process stops
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install adb-logcat-reader - After installation, invoke the skill by name or use
/adb-logcat-reader - Provide required inputs per the skill's parameter spec and get structured output
What is Pywayne Adb Logcat Reader?
Read Android device logs in real-time via adb logcat using a C++ or Python backend with generator-style streaming output. It is an AI Agent Skill for Claude Code / OpenClaw, with 566 downloads so far.
How do I install Pywayne Adb Logcat Reader?
Run "/install adb-logcat-reader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Pywayne Adb Logcat Reader free?
Yes, Pywayne Adb Logcat Reader is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Pywayne Adb Logcat Reader support?
Pywayne Adb Logcat Reader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Pywayne Adb Logcat Reader?
It is built and maintained by wangyendt (@wangyendt); the current version is v0.1.0.