开发者

Android Logcat is very short

I am experiencing a strange issue. I am trying to collect some logs from my android phone using logcollector or aLogcat. Everything works just fine for my Nexus S and moto Defy but when I am trying to capture and send a log from Galaxy S the output is very very short. It captures only 开发者_JAVA技巧last few seconds of phone's activity.

Does anybody know how can I fix this?

Regards, Peter


Many possible things can be occurring here. Another process could be clearing the logcat buffer periodically (logcat -c). Galaxy S could have also modified the default buffer size for its logs to be very small (so it is constantly rolling them over). Other than that, who knows what it could be. The best I can think is to enable USB debugging and seeing if you can run logcat yourself and see what you can see (adb logcat). If you can see the logs fine then it is the app otherwise the system does not allow log collection.


use pipeline to save logs in text file from command prompt

adb logcat > logs.txt

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜