Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(使用帮助)如何将log输出流重定向到文件 #5

Open
zhangzhao4444 opened this issue Jan 31, 2018 · 2 comments
Open

(使用帮助)如何将log输出流重定向到文件 #5

zhangzhao4444 opened this issue Jan 31, 2018 · 2 comments
Assignees

Comments

@zhangzhao4444
Copy link
Owner

zhangzhao4444 commented Jan 31, 2018

将monkey log、logcat 重定向保存

adb shell xxx >log.txt 2>err.txt & logcat -v time -d >logcat.txt

@MichelleWait
Copy link

MichelleWait commented Mar 19, 2018

试过在控制这种格式输入 adb shell xxx >log.txt 2>err.txt & logcat -v time -d >logcat.txt
控制台会报 Logcat command not found,怀疑代码中把&后面截取了啊?确定可以么?
小米6

@zhangzhao4444
Copy link
Owner Author

手工测试那边给我的shell 自己并没有执行过,logcat报错的话,
就只用adb shell xxx >log.txt 2>err.txt 吧

@zhangzhao4444 zhangzhao4444 self-assigned this May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants