I want to run a continuous logcat in the background to capture everything happening on my phone.
This needs to be written to disk line by line without delay. I want to capture the cause of random reboots.
I want to run a continuous logcat in the background to capture everything happening on my phone.
This needs to be written to disk line by line without delay. I want to capture the cause of random reboots.
You need root for this (where I was making mistakes).
So, in a terminal:
su
logcat V > /sdcard/logcat.txt
then, without killing the command, just press home to keep the terminal running in the background.
and there are other less detailed levels.
Exercise caution when sharing D and V level logs; they contain highly sensitive information.
Q & A