log -p v -t "test" "test script message"
然后,您将在AndroIDs Logcat中看到您的消息:
adb logcat | grep test
用法:
log [-p priorityChar] [-t tag] message priorityChar should be one of: v,d,i,w,e
这适用于DroID 4.4.3
总结以上是内存溢出为你收集整理的android – 如何从root设备中的shell脚本将stdout重定向到logcat?全部内容,希望文章能够帮你解决android – 如何从root设备中的shell脚本将stdout重定向到logcat?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)