Pywayne Adb Logcat Reader
Android device logcat reader for real-time log monitoring.
by wangyendt · MIT
The skill
Android device logcat reader for real-time log monitoring. Use when working with pywayne.adb.logcat_reader module to read Android device logs via adb logcat command, supporting both C++ backend (faster) and Python backend (subprocess) with generator-style output for streaming logs.
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
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: wangyendt/pywayne-adb-logcat-reader-27546686979.
Details
- Publisher
- wangyendt
- Category
- Software Development › Mobile apps
- License
- MIT
- Updated
- 2026-10-10
References
More from wangyendt
- Alapi Comprehensive ALAPI skill covering the full bundled ALAPI OpenAPI catalog.
- Android App Publisher Build or publish standalone Android APKs to an authenticated OSS distribution service, update the…
- Awesome Docs Use this skill whenever the user asks to record, organize, update, or maintain project documentat…
- Deep Think Use when user requests deep analysis, thorough thinking, or detailed breakdown of a problem.