Skip to content

Support easy ways to scrape and search lines from logcat - #1024

Open
xpconanfan wants to merge 1 commit into
masterfrom
add-logcat-search-and-wait
Open

Support easy ways to scrape and search lines from logcat#1024
xpconanfan wants to merge 1 commit into
masterfrom
add-logcat-search-and-wait

Conversation

@xpconanfan

Copy link
Copy Markdown
Collaborator

adds built-in utilities to ad.services.logcat to make scraping,filtering, and waiting for logcat lines simple and direct.

@xpconanfan xpconanfan added this to the Mobly Release 1.14 milestone Aug 9, 2026
@xpconanfan xpconanfan self-assigned this Aug 9, 2026
…or to Logcat service

- Implement LogLine dataclass with tag, level, pid, tid, message, and offset parsing.
- Support standard and year-prefixed threadtime logcat formats.
- Add LogcatCursor and LogcatReader for thread-safe host log file reading and tailing.
- Add enhanced Logcat service methods: checkpoint(), wait_for(), wait_for_all(), get_rows(), search(), search_since(), find_first(), tail(), watch(), and listener management.
- Add LogcatTimeoutError for wait/watch timeout conditions.
- Add comprehensive unit tests in logcat_test.py with 100% pass rate across the full Mobly test suite.

ORIGINAL_AUTHOR=angli
@xpconanfan
xpconanfan force-pushed the add-logcat-search-and-wait branch from 686ee72 to 6d674b7 Compare August 9, 2026 19:23
@xpconanfan
xpconanfan requested a review from mhaoli August 9, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant