Android:adb logcat -c似乎没有刷新日志

时间:2015-06-04 04:19:59

标签: android adb logcat

我的理解是 adb logcat -c 将完全刷新日志缓冲区。  在我启动应用程序之前,我执行 adb logcat -c 。  启动应用程序后,我这样做:

D/WeatherServiceSync( 1932): onCreate() - service created anew
D/WeatherServiceSync( 1932): onBind() - client has invoked bindService()
D/WeatherServiceSync( 1932): onUnbind() - client has invoked unbindService()
D/WeatherServiceSync( 1932): onDestroy() - service is being shut down
D/WeatherServiceSync( 1932): onCreate() - service created anew
D/WeatherServiceSync( 1932): onBind() - client has invoked bindService()
D/WeatherServiceSync( 1932): onUnbind() - client has invoked unbindService()
D/WeatherServiceSync( 1932): onDestroy() - service is being shut down

但是,日志似乎每次都会附加,如下所示

{{1}}

如您所见,onCreate到onDestroy的行集正在被复制。

我可以做些什么来刷新日志缓冲区吗?

0 个答案:

没有答案