Skip to content

Instantly share code, notes, and snippets.

@simpleton
Created November 13, 2019 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simpleton/5cbb3aad899838864c132a94c85fd19a to your computer and use it in GitHub Desktop.
Save simpleton/5cbb3aad899838864c132a94c85fd19a to your computer and use it in GitHub Desktop.
android-logcat.json
{
"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>.*)"
"pattern": "^(?<timestamp>\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3})\\s*(?<pid>\\d*)\\s*(?<tid>\\d*)\\s*(?<lc_status>.{1})\\s*(?<tag>\\S+\\s*):(?<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},
"tid" : {"kind":"integer", "identifier":true},
"body": {"kind":"string", "identifier": false}
},
"sample": [
{
//"line": "10-13 15:39:27.517 I/GoogleURLConnFactory( 2118): Using platform SSLCertificateSocketFactory"
"line": "04-13 18:15:20.888 364 460 D Cryptfs : crypt_ftr->fs_size = 114625527"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment