为什么logcat会出现报错
130|console:/ # logcat -c;logcat -G 100M;logcat >/data/1.txt &
[1] 6787
console:/ #
console:/ # logcat -g
main: ring buffer is 100 MiB (15 KiB consumed), max entry is 5120 B, max payload is 4068 B
system: ring buffer is 100 MiB (0 B consumed), max entry is 5120 B, max payload is 4068 B
crash: ring buffer is 100 MiB (0 B consumed), max entry is 5120 B, max payload is 4068 B
perf: ring buffer is 100 MiB (0 B consumed), max entry is 5120 B, max payload is 4068 B
kernel: ring buffer is 100 MiB (15 KiB consumed), max entry is 5120 B, max payload is 4068 B
console:/ # logcat: Unexpected EOF!
This means that either the device shut down, logd crashed, or this instance of logcat was unable to read log
messages as quickly as they were being produced.
If you have enabled significant logging, look into using the -G option to increase log buffer sizes.
^C
[1] + Done (1) \logcat >/data/1.txt
130|console:/ # ls -alt /data/1.txt
-rw------- 1 root root 1052349 2023-05-29 04:26 /data/1.txt
console:/ # du -h /data/1.txt
1.0M /data/1.txt