You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! I'd like to implement this. I haven't used logview yet. What roadblocks specific to logcat should I anticipate? Alternatively, is this better implemented by extension rather than directly in the package?
What roadblocks specific to logcat should I anticipate?
Probably none. Basically, you just need to add appropriate values to logview-std-* variables instead of logview-additional-* to make this standard.
PID
As Logview doesn't support that, I'd suggest using THREAD. It also has a comparable meaning in this case, as each process' messages can be seen as a (mostly) independent stream, which are then all collected into one file.
About timestamp format: is it specified anywhere that timestamps are formatted exactly like this? Can it somehow be dependent on your machine's locale instead?
Hey @doublep ,
It seems Android supports different formats for the logs. My example can be reproduced with the -v threadtime modifier (which is default). What do you think about supporting the default as the standard?
My example can be reproduced with the -v threadtime modifier (which is default).
Sorry, I have no idea with what that modifier is used, I don't develop anything on Android. Can you provide any link?
What do you think about supporting the default as the standard?
That would be the best, but I haven't yet seen the standard. We could also add support for several common formats, not necessarily just one, but I need to see them somewhere first.
I wanted to look at some Robo test logs produced by Google's Firebase Test Lab. The format of those logs appears to be the same as that mentioned in the first post of this issue, so I think it would be safe to assume that as a standard format.
I tried adding a submode using @thedpws code above but got several errors. Here's what works for me:
In your screenshot lines with "I" and "D" are indistinguishable, and that appears to mean that the entry level is not properly understood. Is that so? E.g. does l 3 filter out "D" lines?
At the very bottom of the linked page, I see an example:
For example, using the following call:
Log.i("MyActivity", "MyClass.getView() — get item number " + position);
logcat outputs something similar to the following:
I/MyActivity( 1557): MyClass.getView() — get item number 1
But it looks completely unlike what is shown in your screenshot. Where does the difference come from?
Hi,
The reason the levels aren't working is because there's an extra level of parenthesis in the logview-additional-level-mappings. Defining the AndroidTimestamp format makes the built-in UNIX submode match, which is why it partially worked.
@jimmeta: I formalized that as PR #64, please comment there. Questions: 1) is timestamp format specified anywhere; 2) levels (E/I/etc.) look similar to those used in Jupyter, is this some sort of a standard?
Activity
thedpws commentedon Feb 15, 2024
Hi all! I'd like to implement this. I haven't used logview yet. What roadblocks specific to logcat should I anticipate? Alternatively, is this better implemented by extension rather than directly in the package?
thedpws commentedon Feb 15, 2024
For my reference, this is an example of a solution by extension.
doublep commentedon Feb 15, 2024
Probably none. Basically, you just need to add appropriate values to
logview-std-*variables instead oflogview-additional-*to make this standard.As Logview doesn't support that, I'd suggest using
THREAD. It also has a comparable meaning in this case, as each process' messages can be seen as a (mostly) independent stream, which are then all collected into one file.About timestamp format: is it specified anywhere that timestamps are formatted exactly like this? Can it somehow be dependent on your machine's locale instead?
doublep commentedon Feb 15, 2024
Also, e.g. this page shows substantially different examples. Can you point me to some specification?
thedpws commentedon Feb 19, 2024
Hey @doublep ,
It seems Android supports different formats for the logs. My example can be reproduced with the
-v threadtimemodifier (which is default). What do you think about supporting the default as the standard?doublep commentedon Mar 4, 2024
Sorry, I have no idea with what that modifier is used, I don't develop anything on Android. Can you provide any link?
That would be the best, but I haven't yet seen the standard. We could also add support for several common formats, not necessarily just one, but I need to see them somewhere first.
chetstone commentedon Sep 2, 2024
@doublep I think he meant
-v threadtimeis the default format produced by theadb logcatcommand: https://developer.android.com/tools/logcat#outputFormatI wanted to look at some Robo test logs produced by Google's Firebase Test Lab. The format of those logs appears to be the same as that mentioned in the first post of this issue, so I think it would be safe to assume that as a standard format.
I tried adding a submode using @thedpws code above but got several errors. Here's what works for me:
Here is the result, with filters for Name = "Robo" and "ReactNativeJS":
doublep commentedon Sep 4, 2024
In your screenshot lines with "I" and "D" are indistinguishable, and that appears to mean that the entry level is not properly understood. Is that so? E.g. does
l 3filter out "D" lines?At the very bottom of the linked page, I see an example:
But it looks completely unlike what is shown in your screenshot. Where does the difference come from?
jimmeta commentedon Feb 18, 2026
Hi,
The reason the levels aren't working is because there's an extra level of parenthesis in the
logview-additional-level-mappings. Defining theAndroidTimestampformat makes the built-inUNIXsubmode match, which is why it partially worked.This config adds full support:
as tested with this random example I found online:

https://gist.github.com/mraphael2101/8ee64d588228332ffa8c3aab57eee781
@doublep Maybe this could be added to the default submodes?
Add Android log mode (by Chester Wood). (issue #51)
Add Android log mode (by Jim Paris). (issue #51)
doublep commentedon Feb 18, 2026
@jimmeta: I formalized that as PR #64, please comment there. Questions: 1) is timestamp format specified anywhere; 2) levels (E/I/etc.) look similar to those used in Jupyter, is this some sort of a standard?
Add Android log mode (by Jim Paris). (issue #51)