如何将logcat日志出到文件中,避免程序崩溃重启时抓不到日志

315 阅读1分钟

明令行输入如下命令

adb logcat -v time process > C:\Users\63453\Desktop\log\crashlog.txt

日志则会自动记录到crashlog.txt中