Information about ADB Logcat:
-V Time: Print information in a certain format
-B Main: Printing application information
-B Radio: printing Radio information
-B System: Printing systems Information
Can be put together for use
ADB logcat-b main-b radio-v time
>log.txt: Input to the Log.txt file
ADB logcat-b main-b radio-v time >log.txt
Reference:
Logcat Command list:
-D exit after displaying the log in the console
-C Clean up existing logs
-F <filename> Output the log to a file
ADB logcat-f/sdcard/test.txt
-V <format> set log Input format control output field, default is brief format
brief-Show priority/tag and PID of the original process (default format)
process-Show only Process PID
tag-only show priority/tag
thread-Show only processes: threads and priorities/tags
raw-Display the original log information, no other metadata fields
time-display date, call time, priority/tag, PID
long-display all metadata fields and separate message contents with blank lines
ADB logcat-v thread//using the thread output format
Note Only one format can be specified in the-v option.
-B <buffer> Loads a log buffer that can be used for viewing, and the default value is main.
radio-viewing buffer messages that are contained in a wireless/phone-related
events-viewing event-related messages
main-Viewing the primary buffer (default buffer)
ADB logcat-b Radio//View radio buffers
Related commands for ADB log