[logcat]view log from stdout & writing log file simultaneously
02/22/2010
If you have an adb connection with the device,
#adb shell logcat 2>&1 | tee /tmp/`date +%y%m%d-%H%M%S`
If you have a shell on the device,
#logcat 2>&1 | tee /tmp/`date +%y%m%d-%H%M%S`
When you’re done, press CTRL+c.
Then, you’ll see a log from stdout, and log file in /tmp as following.
100222-101603
100222-101626
…
No comments yet
