How to change size of logcat buffer in Android?

Set the size of the log ring buffer

adb logcat -G <size> 

Append K or M to indicate kilobytes or megabytes

Example: adb logcat -G 512K


See current buffer size

adb logcat -g

Set all type buffer size (main, system, crash)

adb logcat -G 16M # 16M can be replace by (128K ~ 16M)

Set specific type buffer size (main, system, crash)

adb logcat -b system -G 8M # system can be replaced with 'main' or 'crash'

"Logger buffer size option" in "Developer options"

It allows to change the size to a few values between 64k and 16M.

adb logcat -g then immediately shows the update limit.

Tested on 5.1.1, and this answer claims that it is a recent addition.

Tags:

Android