Logcat使用总结-创新互联

1.logcat -c 清除已有log信息

惠来网站建设公司创新互联,惠来网站设计制作,有大型网站制作公司丰富经验。已为惠来上1000家提供企业网站建设服务。企业网站搭建\成都外贸网站建设公司要多少钱,请找那个售后服务好的惠来做网站的公司定做!

2.logcat -b main 显示主缓冲区的log

logcat -b radio 显示无线缓冲区的log

logcat -b events 显示事件缓冲区的log

3.logcat -f [filename] 将log保存到指定的文件中,例如 logcat -b radio -f /data/radio.log

4.logcat -v 设置logcat输出的格式

主要有7种:

1. brief — Display priority/tag and PID of originating process (the default format).

2. process — Display PID only.

3. tag — Display the priority/tag only.

4. thread — Display process:thread and priority/tag only.

5. raw — Display the raw log message, with no other metadata fields.

6. time — Display the date, invocation time, priority/tag, and PID of the originating process.

7. long — Display all metadata fields and separate messages with a blank lines.

比较常用的是显示时间:logcat -v time &

5.logcat -g 查看缓冲区的大小

logcat -g main

logcat -g radio

logcat -g events

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

分享标题:Logcat使用总结-创新互联
文章出自:https://www.cdcxhl.com/article38/dssssp.html

成都网站建设公司_创新互联,为您提供软件开发网站导航用户体验网站改版网站维护定制网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

手机网站建设