How can I erase the old data from logcat?

后端 未结 4 1732
梦如初夏
梦如初夏 2020-12-23 10:50

When I execute the command

adb logcat

while running the android emulator, all of the old logs blow past and so I figure they are stored in a f

4条回答
  •  渐次进展
    2020-12-23 11:47

    Dup of How to empty (clear) the logcat buffer in Android

    The following command will clear only non-rooted buffers (main, system ..etc).

    adb logcat -c
    

    If you want to clear all the buffers (like radio, kernel..etc), Please use the following commands

    adb logcat -b all -c
    

    or

    adb root
    adb shell logcat -b all -c 
    

提交回复
热议问题