-s? Set the default filter to mute.
For example, specify filterspec '*:s'
?
Where & lt tag> is a log component tag (or * stands for all), and the priority is:
? V lengthy
? D debugging
? I. Information
? W warning
? error
? fatal
? Silent (suppress all output)
*' means' *:d' and < label & gt, which itself means < label & gt: five.
If not specified on the command line, the filterspec will be set from ANDROID_LOG_TAGS.
If the filterspec is not found, the filter defaults to' *:I'
If it is not specified with -v, the format is set from ANDROID_PRINTF_LOG.
Or "short" by default.
View the overall policy description option to disable URL identification.
Disable expression
Disable Discuz! password
Use personal signature
Receive a new reply email notification
Title options include:
-s? Set the default filter to mute.
? For example, specify filterspec '*:s'
-f & lt; File name & gt? Record to file. Default is standard output.
-r[& lt; Kilobyte >]? The log is rotated every kilobyte. (16 if not specified). Need -f
-n & lt; count & gt? Set the maximum number of rotation logs to & ltcount & gt, and the default is 4.
-M & lt; 1,0 & gt; Set the enable copy (move) log to oms_log_path.
-v & lt; Format & gt Sets the log print format, where & lt format & gt is one of the following: Short process marks thread original time and thread time is long.
-c? Clear (refresh) the entire log and exit.
-Dee? Dump the log and exit (do not block)
-g? Get the size of the circular buffer of the log and exit.
-b & lt; Buffer & gt requests a spare ring buffer.
? (Master (default), Broadcast, Event)
-B? Output log in binary.
Filter specifications are a series of
& lt label & gt[: priority]
Where & lt tag> is a log component tag (or * stands for all), and the priority is:
V lengthy
D debugging
I. Information
W warning
error
fatal
Silent (suppress all output)
*' means' *:d' and < label & gt, which itself means < label & gt: five.
If not specified on the command line, the filterspec will be set from ANDROID_LOG_TAGS.
If the filterspec is not found, the filter defaults to' *:I'
If it is not specified with -v, the format is set from ANDROID_PRINTF_LOG.
Or "short" by default.
Example:
Check the radio log
Logcat -b radio
Me /RILC (? 46): 39 0d 0a
Me /RILC (? 46):AT[0]& lt; +ECIND: 1, 16,99
Me /RILC (? 46):AT[0]& lt; +ECSQ: 16.99
Me /RILC (? 46):& lt; & lt& lt& ltpCh[0] ...
Me /RILC (? 46):0d 0a 2b 45 43 49 4e 44 3a 20 3 1 2c 3 1 37 2c 39 39 0d 0a 0a 2b 45 43 53 5 1 3a 20 3 1 37 2c 39
Me /RILC (? 46): 39 0d 0a
Me /RILC (? 46):AT[0]& lt; +ECIND: 1, 17,99
Me /RILC (? 46):AT[0]& lt; +ecsq:17,99 View the above warning log.
logcat *:w
e/sensor manager( 102):smjni-JNI data _ open
E/(? 49): b433 6 155
E/(? 49): b433 6 157
E/gralloc (102): [unregister] handle 0x2debd0 is still locked.
Service with battery (102): Get battery health status [0] "Charging"
Service with battery (102): Get battery health =' good'
Service with battery (102): Get battery health status [0] "Charging"
With battery service (102): Get the battery health =' good' filter to view the log of dalvikvm.
Logcat -s dalvikvm or logcat dalvikvm *:s
D/dalvikvm( 257): GC released 1 19 1 objects/343344 bytes in 65 milliseconds.
D/dalvikvm( 257): GC released 1 19 1 object/343400 bytes in 64 milliseconds.
D/dalvikvm( 257): GC released 1 19 1 object/343368 bytes in 65 milliseconds.
D/dalvikvm( 257): GC released 1 19 1 objects/3434 16 bytes in 70 milliseconds.
D/dalvikvm( 257): GC released 1 19 1 object/343384 bytes in 64 milliseconds.
Note: the filtering method of logcat is a bit weird. You don't just specify labels and priorities to filter. You must mute all tags, and the tag filtering set on this basis will be successful.
Therefore, logcat appname:v cannot successfully filter logs. Filter logs for multiple applications.
logcat -s dalvikvm vold
D/vold(? 43): door_sock= 10
D/vold(? 43): fw_sock=7
D/vold(? 43): uevent_sock=6
D/dalvikvm( 257): GC released 1 19 1 object/343384 bytes in 76 milliseconds.
D/dalvikvm( 257): GC released 1 19 1 object/343368 bytes in 8 1 millisecond.
D/dalvikvm( 257): GC released 1 19 1 object/343400 bytes in 64 milliseconds.
D/vold(? 43): Select the result = 1log and save it to a file.
logcat & gt 1 . txt(" & gt; Is the data flow guide symbol of windows)
I tried to use the-f option, but I got an error.
logcat -f 1.txt
Unable to open output file: read-only file system.