Re: logcat buffer storage location

696 views
Skip to first unread message
Message has been deleted

Yong Ma

unread,
Oct 12, 2019, 4:15:03 PM10/12/19
to android-platform
logcat use an ring buffer, and older log will be discarded. 

And If you want to get all log saved, you can use the logcatd which will save all log in /data/misc/logd/

Have an look at the following source files:


在 2019年10月12日星期六 UTC+8上午2:46:47,Minato写道:
Hello,

I would like to know where shall my logcat stored after exceed the buffer allocated.

I have an application which keeps pushing the text to logcat's buffer, in just 30 mins the logcat command gave me 500MB of text.

Will it cause any problem? considering memory ? I saw some logs like "ActivityManager  I    Low on memory:"

I can see below is my logcat allocation, where other logs are getting saved?

# logcat -g                                                                                                                                                                                                 
main: ring buffer is 4Mb (3Mb consumed), max entry is 5120b, max payload is 4068b
system: ring buffer is 4Mb (693Kb consumed), max entry is 5120b, max payload is 4068b
crash: ring buffer is 4Mb (0b consumed), max entry is 5120b, max payload is 4068b



Regards,
Jeshwanth


Disclaimer:

This message and the information contained herein is confidential and subject to the policy statement of Ather Energy Pvt. Ltd. You may review the policy at https://www.atherenergy.com/email-disclaimer

 map | website | facebook | twitter | linkedin

Message has been deleted

Yong Ma

unread,
Oct 15, 2019, 11:28:35 AM10/15/19
to android-platform

logcat persist log in /data/misc/logd, which has no relation with ring buffer size.

Every log will be persist after it's been produced.


在 2019年10月15日星期二 UTC+8上午12:47:07,Minato写道:
Thanks a lot for the pointer, so the logcat logs keep to /data/misc/logd everytime it reached the ring buffer size?
Reply all
Reply to author
Forward
0 new messages