Android studio maximum number of lines logcat

I’m testing with a real device connected to Android Studio. Because of multithreading behavior that I don’t want to interrupt I’ve added lots of log statements to my code to find out what’s happening. In logcat I see the statements comming, so far so good.

After running my complete test I found out that the beginning of my logging is missing! Seems to me that Android Studio deletes the earliest lines of logging when the log is in danger of growing too big. Since I would like to retrieve my whole logfile after a testrun (so I can do something else in the meantime), I would like to increase the number of lines Android Studio keeps.

  • Android Virtual Device (AVD) — which CPU/ABI should I select?
  • ActivityNotFoundException?
  • setShadowLayer Android API differences
  • Android: change font color on click
  • Glass voice command nearest match from given list
  • How to set the max height of a Layout in android?
  • Do you know where I can adjust this maximum number of lines logcat has to store? I hope/pray/assume that there is such a parameter, because I can’t find it yet…

    Related posts:

    How can you implement multi-selection and Contextual ActionMode in ActionBarSherlock?
    How to get language (locale) currently Android app displays?
    Android: Set margins in a FrameLayout programmatically- not working
    Android Fatal Signal 11
    Is there a way to explicitly control WiFi scan intervals in Android?
    Error received when updating the SDK with the SDK Manager
  • HorizontalScrollView with centered elements
  • how to add a pin marker on image view in android
  • Android: how to wait AsyncTask to finish in MainThread?
  • What is a cheek press event?
  • Retrieving a list of classes from a package in an Android project
  • How to adjust text kerning in Android TextView?
  • 4 Solutions collect form web for “Android studio maximum number of lines logcat”

    I found this:

    I’ve found that in the eighth release of idea IDE, the “Limit Run/Debug Console Output” setting is gone so actually the only way for increasing the console output size is to set the idea.cycle.buffer.size value in

    Like @zzy says… edit file: PATH_TO_ANDROID_STUDIO\bin\

    Here are properties you can customize in your own

    # 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

    Modify above value to 2048 or whatever you need.

    I’d like to add an update to this question, in case anyone else is looking for a way to change this on or after March of 2017.

    The latest version of Android Studio, version 2.3, now has an option to change the size of the cyclic logcat buffer in Settings/Preferences.

    Go to Settings/Preferences > Editor > General > Console and enable the Override console cyclic buffer size (1024KB) option. Once you enable this setting, you can enter a value in kilobytes for the logcat buffer.

    It would have been better if Google added the word “logcat” in there, because it can’t be found with a search of the preferences unless you specifically enter “console” or “cyclic”, etc.

    Edit: Google have now assigned this issue to a developer. It should be implemented soon, and I’ll update this answer when it is.

    You could start the logcat in a terminal:

    [adb] logcat [option] ... [filter-spec] ... 

    and pipe it to a txt file


    PATH\TO\YOUR\ADB\ adb.exe logcat > log.txt



    PATH\TO\YOUR\ADB\ adb logcat| tee log.txt 
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.