Skip to content

Create android_logcat_log.json#1629

Open
vcaen wants to merge 1 commit intotstack:masterfrom
vcaen:patch-1
Open

Create android_logcat_log.json#1629
vcaen wants to merge 1 commit intotstack:masterfrom
vcaen:patch-1

Conversation

@vcaen
Copy link

@vcaen vcaen commented Feb 25, 2026

Add a new format to support Android Logcat (adb logcat) output.

Also added the entry to formats.am

Android is widely used worldwide and its log format (logcat) has a stable structure which is easily parsed by lnav.

https://developer.android.com/tools/logcat

Logcat has multiple output format, this patch supports the default and the brief format.

@@ -0,0 +1,90 @@
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"logcatFull": {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the name to logcat_log so that it matches the style of the other formats. Can you also change the name of the file to match the format name (i.e. logcat_log.json).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review. I've amended the PR with the requested changes.

Even though "logcat" is probably descriptive enough, I feel like having the word "android" in the file and format name might help people better understand that this format is applicable to android.

But happy to keep it as is if that's your preference.

@vcaen vcaen force-pushed the patch-1 branch 3 times, most recently from ccc8ba4 to 17b88ed Compare February 28, 2026 09:48
Add a new format to support Android Logcat (`adb logcat`) output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants