如何从Google Arc Welder / Cordova应用程序在PC上获取logcat输出? [英] How to get logcat output on PC from Google Arc Welder/Cordova app?
问题描述
我试图从在Google Arc Welder上运行的Cordova应用程序获取 logcat
日志。
I am attempting to get logcat
logs from a Cordova app running on Google Arc Welder.
尝试以下顺序的步骤:
- 从google arc welder启动应用程序
- 启动adb logcat
adb logcat -d
- 通过键入
从chrome启用输出plugin.shell(logcat )
插入到我的应用程序的javascript控制台。
- Started the app from google arc welder
- Start adb logcat with the command
adb logcat -d
- Enable output from chrome by typing
plugin.shell("logcat")
into the javascript console for my app.
< shell(logcat) adb logcat窗口停止说它正在等待设备和退出,而不是打印日志。
After I type plugin.shell("logcat")
the adb logcat window stops saying that it is waiting for devices and exits instead of printing logs.
尝试 plugin.shell(logcat)
命令ib的JS控制台窗口,但没有得到任何Android特定的日志。
I have also tried the plugin.shell("logcat")
command ib the JS console window but don't get any android-specific logs there either.
为了能够在Google Arc Welder中使用我的Android应用程序执行日志,我应该做什么不同?
What should I do differently in order to be able to do logs from my Android app in Google Arc Welder?
推荐答案
通过将额外的元数据stderrLog级别设置为V,然后使用ARC Welder重新部署应用程序将在JS控制台中发出命令plugin.shell('logcat')时显示logcat输出。
在Chrome操作系统上,它还会在文件中显示日志记录:///var/log/ui/ui.LATEST
by setting the extra metadata "stderrLog" level to "V" and then redeploying the app with ARC Welder will show the logcat output when you issue the command plugin.shell('logcat') in the JS console. On Chrome OS it will also show the logging in file:///var/log/ui/ui.LATEST
这篇关于如何从Google Arc Welder / Cordova应用程序在PC上获取logcat输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!