Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio logcat history/buffer size

Does anyone know if there a way to increase the size of the logcat history/buffer in Android Studio? I remember there was a way to do it in Eclipse and was hoping Android Studio had a similar setting.

like image 658
triad Avatar asked Jul 10 '14 20:07

triad


People also ask

What is the best logger buffer size for Android?

Buffer size: A general rule is that a buffer size of 10 MB per CPU core allows for a trace that's about 20 seconds long.

How does Logcat determine buffer size?

First enable Developer options in Settings. Then navigate to the newly visible Developer options entry, scroll down, and click on logger buffer size . This will display options ranging from off to 16Mb . I have found that when switching to off , logcat will still hold and report a buffer size of 64Kb .

Should I increase logger buffer size?

Increasing the buffer size would allow you to capture more logs in the buffer, and reducing the probability of an overwrite in case of high-frequency logs. Setting the option to "OFF" would disable logging.

Why is my Logcat empty Android Studio?

Solution 1: Restarting your Android StudioIn your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.


2 Answers

You can also do it per project, via the IDE: Settings->Editor->General->Console: tick "Override console cycle buffer size. Enter your desired size in the text box.

Finally restart Android Studio for the changes to take effect.

enter image description here

like image 108
Nick Avatar answered Sep 23 '22 15:09

Nick


You can increase the value of idea.cycle.buffer.size=1024 in property file android-studio\bin\idea.properties, buffer size unit: (Kb). I have already try, and it works for me perfect!

Configuration description as following :

#--------------------------------------------------------------------- # This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb). # Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled #--------------------------------------------------------------------- idea.cycle.buffer.size=1024 
like image 44
codezjx Avatar answered Sep 21 '22 15:09

codezjx