chatty: uid=10549(u0_a549) com.exampleidentical 40 lines
主要是因为你的app在短时间内输出太多次的日志,导致日志丢失
As soon as app considered 'chatty' by logcat (more than 5 lines per second), logs of your app will be collapsed. You can avoid this behaviour by whitelisting your app for logcat: adb logcat -P '<pid or uid of your app>' You can print the current white and black lists by executing: adb logcat -p Also this command is helpful to print logcat statistics: adb logcat -S Additionally, I found useful to auto-whitelist my app for logcat directly from code during tests: int pid = android.os.Process.myPid(); String whiteList = "logcat -P '" + pid + "'"; Runtime.getRuntime().exec(whiteList).waitFor(); More info can be found in official docs for logcat here