Android 调试 adb logcat 获取日志到桌面文件

adb logcat | grep -i xxxxx1 > /Users/xxxxx2/Desktop/xxxxx3
-i 为忽略大小写
xxxxx1 为需要筛选的关键字
xxxxx2 为用户名
xxxxx3 为文件名

清理终端日志缓存
adb logcat -c -b main -b events -b radio -b system

adb logcat | grep -i LUA-print
adb logcat | grep -e jswrapper -e mini-game-ll

你可能感兴趣的:(Android 调试 adb logcat 获取日志到桌面文件)