开发者

Android Logcat is very short

开发者 https://www.devze.com 2023-04-02 20:44 出处:网络
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 t

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

精彩评论

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

关注公众号