Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: How to capture or redirect the logs from LogCat to a file using ECLIPSE IDE

In Android, How to capture or redirect the logs from LogCat to a file using ECLIPSE IDE. I dont want to use command prompt option. As i haven't configured it . Thanks

like image 789
m4n07 Avatar asked Feb 25 '23 11:02

m4n07


1 Answers

See logcat | Android Developers.

Can be redirected to file from the command prompt. Use adb logcat -f <filename>, or in Linux it will be better adb logcat | tee <filename>.

Also, you can capture the time stamp as well with adb logcat -v time -f <filename>, or in Linux it will be adb logcat -v time | tee <filename>.

like image 108
Suman Avatar answered May 14 '23 09:05

Suman