I am using android jellybeans. There is a large amount of debug information being dumped by many components. So, I notice that logs from my application are often lost. I have tried dumping logcat log in to a file in the phone and then doing a "adb pull". Still, there is a good amount of logs thar are lost. Is there a way to ensure no logs are lost.
Tell me more
×
Android Enthusiasts Stack Exchange is a question and answer site for
enthusiasts and power users of the Android operating system. It's 100% free, no registration required.
|
Logging on Android uses a ring buffer with a fixed size (exact size depends on different criteria), see e.g. What is the size limit for Logcat?, so older entries get overwritten once the buffer is "full". You can adjust the size of the buffer (see: How do I increase the log size of dev/log/main?) -- but those adjustments would probably not survive a boot. If you really want to make sure no log data is lost, you would need to pipe the log to some "external ressource" -- either to some "external storage" or "the cloud". |
|||
|
|