Android adb logcat time filter

♀尐吖头ヾ 提交于 2019-12-08 03:12:04

问题


Does anyone know how to filter out the logcat ('adb shell logcat') so that it only shows the log statements after current date and time ? Thanks in advance.


回答1:


Activities created after the current date and time? Or just log statements after the current time? Could it be as simple as "adb logcat -c; adb logcat"




回答2:


use

adb logcat -t "01-21 10:10:10.000"

this will give you log

after 21st January 10.10.10.000




回答3:


Before you start up logcat first pass it the argument -c In the terminal you would say

adb logcat -c
adb logcat

This would produce a fresh log.



来源:https://stackoverflow.com/questions/3570912/android-adb-logcat-time-filter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!