Any way to increase the size of the Android system log file?

Can I increase the size of the Android system log file?

I'm on a gingerbread

Get only an hour of data. I would like to see all day. I am using the Sendlog application to send me a log.

+4
source share
3 answers

I don’t think it is possible to increase the size of the logcat adb log buffer, but when I need the log all day, I do something like this

first connect the device to the computer, and then in the shell I type

adb logcat > myWholeDayLogFile.txt 

and you can have a log from the whole day when you open the file, reload it to reload new changes.

+2
source

Connect to the device using:

 adb shell 

Then increase the size of the buffer with:

 logcat -r <nrKB> -f <logFileName> & 

Ampersand will let you run it in the background so that you can exit the adb shell and turn off your computer. The size of the log buffer should return to normal operation after rebooting the phone.

See http://developer.android.com/tools/help/logcat.html

+2
source

"adb logcat -g" will show the current buffer sizes.
"adb logcat -G <size> K / M" will set the current buffer size.

For example, setting the buffer size to 1024Kb:
"adb logcat -G 1024K"

0
source

Source: https://habr.com/ru/post/1387880/


All Articles