Created
November 1, 2019 03:54
-
-
Save simpleton/c0c379e7ebacd08f569b8fe0eae49711 to your computer and use it in GitHub Desktop.
android-logcat.json for .lnav/formats/installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"android_logcat_time": { | |
"title": "Android logcat with time", | |
"description": "logcat generated by command 'adb logcat -v time'", | |
"url": "https://developer.android.com/studio/command-line/logcat.html", | |
"timestamp-format": [ | |
"%m-%d %H:%M:%S.%L" | |
], | |
"regex": { | |
"std-logcat-time": { | |
"pattern": "^(?<timestamp>\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}) (?<lc_status>.{1})/(?<tag>\\S+\\s*)\\((?<pid>\\s?\\d+)\\):(?<body>.*)" | |
} | |
}, | |
"level-field": "lc_status", | |
"level": { | |
"fatal": "F", | |
"error": "E", | |
"warning": "W", | |
"info": "I", | |
"debug": "D", | |
"trace": "V" | |
}, | |
"value": { | |
"lc_status": { | |
"kind": "string", | |
"foreign-key": true | |
}, | |
"tag" : {"kind":"string", "identifier": true}, | |
"pid" : {"kind":"integer", "identifier":true}, | |
"body": {"kind":"string", "identifier": false} | |
}, | |
"sample": [ | |
{ | |
"line": "10-13 15:39:27.517 I/GoogleURLConnFactory( 2118): Using platform SSLCertificateSocketFactory" | |
} | |
] | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment