Files
flomo-ai/test_logcat.bat

22 lines
546 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
echo 测试日志系统...
echo.
echo 当前设备:
adb devices
echo.
echo 清除旧日志...
adb logcat -c
echo.
echo 等待5秒让日志系统稳定...
timeout /t 5 /nobreak >nul
echo.
echo 测试日志输出(应显示系统日志):
adb logcat -d -v time | findstr /C:"I/" | head -n 5
echo.
echo 如果看到上述日志,说明日志系统工作正常
echo 现在请在模拟器中运行APP然后按回车查看日志...
pause >nul
echo.
echo 开始监控应用日志...
adb logcat -v time -s MainActivity:* SecondActivity:*