如何从 logcat 中删除旧数据? [英] How can I erase the old data from logcat?

查看:25
本文介绍了如何从 logcat 中删除旧数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行命令时

adb logcat

在运行 android 模拟器时,所有旧日志都过去了,所以我认为它们存储在某个文件中.有没有我可以运行的命令来清除日志并重新开始?如果没有,是否有其他方法可以做到这一点?

while running the android emulator, all of the old logs blow past and so I figure they are stored in a file somewhere. Is there a command I can run to clear the logs and start fresh? If not, is there some other way to do this?

推荐答案

你试过了吗?

 adb logcat -c

https://developer.android.com/studio/command-line/logcat.html

这篇关于如何从 logcat 中删除旧数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆