Why are my Android logcat logs being lost on device boot up?
I'm trying to troubleshoot an issue on a users phone with my app. Essentially the widgets are failing to update on start-up of the device. This user is now sending me log files (captured via the excellent CatLog). However on boot up I am only seeing two debug log statements in this users logs when I should be seeing 20-30 (as I do on my phone). What is strange is that these two statements are in the middle of the various processes and code which do the updates so its definitely already executed some of my log statements. Any ideas as to why some of these statements are missing? There's a lot going on on this users phone and many processes are being killed by the OS. Should I then assume that some of these logs are never being recorded?
First the log in android it's a circular log, that means that if you have a lot of logging going out there you're older statements will be overwritten. Why don't you use a custom solution like microlog for android http://code.google.com/p/microlog4android/
You can use command logcat | grep 'YOURTAG', for only showing your apps logs. It can be done through any Terminal Emulator, or using Android Debug Bridge (adb)