Hi - when I connect my Android device to my PC via USB and use this command: adb logcat > logs.txt, it will send device logs directly to that file over time.
I want to use the LogMX file manager to watch this file and parse updates as they come (or on some short update like 1 second). No built in parser is parsing this. So I was wondering if the simple parser customizer will work for it.
I've attached a sample log. The format is essentially:
Date Thread1 Thread2 LogLevel Message
LogLevel looks to be F, I, D, W, E (and V?)
I don't care about the threads. I'm not sure if those even are threads.
While writing this I did a quick google and found this existing Java-based logcat parser / viewer.
https://github.com/wangfei1975/superlog
How to Parse this log?
Moderator: admin
Re: How to Parse this log?
I forgot to attach that log. This page is telling me that a *.txt is an invalid extension type. So I've pasted the contents into a Gist.
https://gist.githubusercontent.com/jobe ... tfile1.txt
https://gist.githubusercontent.com/jobe ... tfile1.txt
Re: How to Parse this log?
Hello,
If you don't need the threads, you can use the Parser I have created for you:
You will also need to setup the log levels (I assumed "V" is Verbose and "F" is Fatal, even is Fatal doesn't seem to be an official level: https://developer.android.com/reference ... onstants_1). To do so you can import this file: To import these files, simply go to menu "Tools" > "Options" > tab "General", button "Import option" at the bottom left corner. If you want to tune the Parser or the Levels, check the tabs "Parsers" and "Levels" in the "Options" window, respectively (the Parser I put here is named "Android logs Parser")
Please let me know if it worked well.
Xavier
If you don't need the threads, you can use the Parser I have created for you:
You will also need to setup the log levels (I assumed "V" is Verbose and "F" is Fatal, even is Fatal doesn't seem to be an official level: https://developer.android.com/reference ... onstants_1). To do so you can import this file: To import these files, simply go to menu "Tools" > "Options" > tab "General", button "Import option" at the bottom left corner. If you want to tune the Parser or the Levels, check the tabs "Parsers" and "Levels" in the "Options" window, respectively (the Parser I put here is named "Android logs Parser")
Please let me know if it worked well.
Xavier
- Attachments
-
- logmx.levels.export
- (378 Bytes) Downloaded 814 times
-
- logmx.levels.export
- (378 Bytes) Downloaded 798 times
-
- logmx.levels.export
- (378 Bytes) Downloaded 774 times
-
- logmx.levels.export
- (378 Bytes) Downloaded 763 times
Re: How to Parse this log?
Thanks! I'll give these a try as soon as I can and report back here.