adb logcat单独笔记

这篇博客介绍了adb logcat的相关命令,包括如何设置过滤器、输出日志到文件、设定日志大小限制、最大数目以及输出格式。重点讲解了不同输出格式如brief、process、tag、thread、raw、time、threadtime和long的用法,帮助读者理解和掌握adb logcat的高级使用技巧。
摘要由CSDN通过智能技术生成
logcat是android中的一个命令行工具,可以用于得到程序的log信息,使用adb查看log时,中文容易出现乱码,提前先执行CHCP 65001设置一下UTF-8编码。

以下是adb logcat的帮助信息
输入adb logcat –help

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 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值