• android adb logcat


    打印指定过滤信息

    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 of:

    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 of
    <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)

    '*' means '*: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"

  • 相关阅读:
    如何:通过对字符串应用 HTML 编码在 Web 应用程序中防止脚本侵入
    ref和out的区别?
    debug版本和release版本的区别?
    Ninject依赖注入——构造函数的注入
    WCF入门简单教程(图文) VS2010版
    WCF学习笔记(一)
    WinRt BottomAppBar
    windows 8.1 MessageDialog
    sqlServer学习2-sql脚本说明
    sqlServer学习1-sql脚本
  • 原文地址:https://www.cnblogs.com/wanqieddy/p/2518382.html
Copyright © 2020-2023  润新知