|
|
3 bulan lalu | |
|---|---|---|
| .. | ||
| log | 5 bulan lalu | |
| translate | 1 tahun lalu | |
| QUICK_START.md | 5 bulan lalu | |
| README.md | 3 bulan lalu | |
| analyze_log_tags.py | 5 bulan lalu | |
| bundletool.jar | 1 tahun lalu | |
| generate_log_report_html.py | 3 bulan lalu | |
| pepk.jar | 3 bulan lalu | |
Python>=2.7.10
pip install pyelliptic==1.5.7
conda install openssl=1.0.2u
python decode_mars_crypt_lo[debug.keystore](..%2Fkeystore%2Fdebug%2Fdebug.keystore)g_file.py com.adealink.weparty_20210520.xlog
adb devices命令查看是否手机已连接//查看tag_http日志
adb logcat -s tag_http:D
//获取应用pid,下面命令输出第二个数字即为pid
adb shell ps | grep 'com.wenext.lama'
//查看应用日志
adb logcat --pid=12298
//查看应用特定msg日志,下面为http日志
adb logcat --pid=12298 | grep 'tag_http'
java -Dfile.encoding=utf-8 -jar decode-ui-all.jar
# 基本使用(推荐)- 自动生成报告文件名
python3 generate_log_report_html.py xxxxx.log
# 输出: xxxx.html
# 指定输出文件名
python3 generate_log_report_html.py logcat.txt --output my_report.html
# 批量处理多个日志文件
for log in *.xlog.log; do
python3 generate_log_report_html.py "$log"
done
命令行版本的日志TAG分析工具,适合快速查看统计数据。
# 基本分析
python3 analyze_log_tags.py logcat.txt
# 显示TOP 30 TAG
python3 analyze_log_tags.py logcat.txt --top 30
# 显示超长日志示例
python3 analyze_log_tags.py logcat.txt --show-long-logs 10
# 导出CSV报告
python3 analyze_log_tags.py logcat.txt --export report.csv