Skip to content

Instantly share code, notes, and snippets.

@simpleton
Created November 1, 2019 03:54
Show Gist options
  • Save simpleton/c0c379e7ebacd08f569b8fe0eae49711 to your computer and use it in GitHub Desktop.
Save simpleton/c0c379e7ebacd08f569b8fe0eae49711 to your computer and use it in GitHub Desktop.
android-logcat.json for .lnav/formats/installed
{
"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