Reputation: 355
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.
Upvotes: 10
Views: 23137
Reputation: 15967
$ adb logcat -T 1
This will print the most recent line plus any new lines starting from now on (passing -T 0
is invalid and will log a warning and default to -T 1
).
Where -T
(from adb logcat --help
) is:
-T <count> Print only the most recent <count> lines
(does not imply -d).
Upvotes: 4
Reputation: 900
use
adb logcat -t "01-21 10:10:10.000"
this will give you log
after 21st January 10.10.10.000
Upvotes: 9
Reputation: 31503
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.
Upvotes: 2
Reputation: 5724
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"
Upvotes: 9