Can we turn off "chatty" in logcat?

19,852

I also can't find documentation, but according to Issue 202457 - android - Disable chatty filtering of log messages (I/chatty ... expire N lines) - Android Open Source Project - Issue Tracker the command you want is

adb logcat -P ""
Share:
19,852

Related videos on Youtube

TheUmpteenth
Author by

TheUmpteenth

Updated on June 04, 2022

Comments

  • TheUmpteenth
    TheUmpteenth almost 2 years

    So I'm trying to find an elusive bug in a large codebase. As such, I've put a lot of logging into my app. I'm lucky enough to have multiple testers working on this. However, I've found that a lot of my logcat logs are missing. They're hidden as 'chatty'. For example

    1799 12017 I logd: uid=10007 chatty comm=Binder_B, expire 4 lines

    I've found some mention of using the adb command

    adb logcat -p

    but I can't find any documentation for the -p. I've also found that with a lot of devices (possibly all devices on Marshmallow) this is not supported.

    Other than having the device plugged into Android Studio / Eclipse, is there a way to stop 'chatty' from hiding my logs?

  • DrChandra
    DrChandra over 6 years
  • TheUmpteenth
    TheUmpteenth over 6 years
    This looks quite useful, you can actually whitelist and blacklist the logs. Thanks
  • srs
    srs about 6 years
    Doesn't work for me
  • nealmcb
    nealmcb almost 6 years
    @SantoshSalunke Can you be more specific? What happens? Error messages?
  • srs
    srs almost 6 years
    I don't get any error message. After this executing this command adb logcat -P "" , it does not disable chatty. I tried mentioning my app's UID/PID, it gets whitelisted but still chatty is not disabled. My device is OnePlus5
  • Matt
    Matt over 4 years
    This doesn't work.