Logcat-filter and analysis tool
The checkLoggingCoverage.js tool probably belongs more in log-searcher
Requirements
- ADB (>=1.0.39)
- NodeJS (>=8.0.0)
- NPM dependencies:
npm install
Logcat-filter => JSON file
To start listening for logs for a specific package(s):
- Ensure Device is plugged in
- Run Logcat-Filter
node ./index.js --package org.kiwix.kiwixmobile --package org.kiwix.kiwixcustomexample
Each time the Android package(s) is started, a new file will be opened and appended to.
Logging Coverage Checker
To check log coverage, ensure you have successfully run log-searcher.
node ./checkLoggingCoverage.js --logsJSON ./<YOUR_OUTPUT_FILE>log.json --logAnalysis ../log-searcher/data.json
- --logsJSON is a completed output file from logcat-filter (./index.js)
- --logAnalysis is the output of log-searcher
This will generate reportData.json
.
To view a report, run
npm run serve
Confirmed Working Devices
Nexus 7 SM-G361F KFOT (Kindle Fire) Lenovo B6000 UBISLATE 7C+ (Android 4.0.4)
Startup Log Formats
1: Start proc {packageName} for added application {packageName}: pid={PID} uid=XXXX gids={XXXX, XXXX} 2: Start proc {PID}:{packageName}/XXXX for added application {packageName}
Lenovo V6000: 1 KFOT: 1 UBISlate 7C+: 1 Nexus 7 13: 2 SM-G361F: 2