Android ADB logcat

Source: Internet
Author: User
Tags print format

 

Print the specified filtering information

ADB logcat-s "system. Out"

 

Wanqi @ wanqi-system-product-Name :~ /Huiye_qrd_e8/7x27a-11302301 $ ADB Shell
# Logcat-help
Unknown option -- hunrecognized Option
Usage: logcat [Options] [filterspecs]
Options include:
-S set default filter to silent.
Like specifying filterspec '*: s'
-F <FILENAME> log to file. Default to stdout
-R [<Kbytes>] rotate log every Kbytes. (16 if unspecified). Requires-F
-N <count> sets Max number of rotated logs to <count>, default 4
-V <format> sets the log print format, where <format> is one:

Brief process tag thread raw time threadtime long

-C clear (flush) the entire log and exit
-D dump the log and then exit (don't block)
-T <count> Print only the most recent <count> lines (implies-d)
-G get the size of the log's ring buffer and exit
-B <buffer> Request alternate ring Buffer
('Main' (default), 'Radio ', 'events ')
-B output the log in binary
Filterspecs are a series
<Tag> [: Priority]

Where <tag> is a log component tag (or * for all) and priority is:
V verbose
D debug
I info
W warn
E Error
F fatal
S silent (supress all output)

'* 'Weight' *: d' and <tag> by itself means <tag>: V

If not specified on the CommandLine, filterspec is set from android_log_tags.
If no filterspec is found, filter defaults to '*: I'

If not specified with-V, format is set from android_printf_log
Or defaults to "Brief"

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.