How to get log for recent time, for example, for last 5 minutes?
This command in command line
adb logcat -v time | find "E/"
gives error logs for all time.
(It's not interesting to wait several minutes while all logs is displaying)
Thank you very much!
adb logcat -T "$(date +'%m-%d %H:%M:%S.%q' -d '5 minutes ago')"
date command (works on Linux and Mac, not sure windows)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With