Search code examples
androidlogcat

Keep Logcat from deleting entries


In Eclipse, I notice that Logcat only retains a few dozen entries and deletes the older ones as soon as a new one come in. Is there a way to prevent this? I need my app to run for a long time and not lose any entries because my app eventually hangs or crashes after a few days, and I want to see if something in Logcat has been recorded.


Solution

  • I am not sure if this is the most elegant solution to the problem, but you can always increase the LogCat message size in Eclipse.

    Window -> Preferences -> Android -> LogCat -> Maximum number of LogCat messages to buffer

    The default is 5000, I believe. You can set it to be very high if you are planning to run your application for a long time.