How to get logcat output on PC from Google Arc Welder/Cordova app?

风流意气都作罢 提交于 2019-12-04 14:29:23

问题


I am attempting to get logcat logs from a Cordova app running on Google Arc Welder.

I have tried the following sequence of steps:

  1. Started the app from google arc welder
  2. Start adb logcat with the command adb logcat -d
  3. Enable output from chrome by typing plugin.shell("logcat") into the javascript console for my app.

After I type plugin.shell("logcat") the adb logcat window stops saying that it is waiting for devices and exits instead of printing logs.

I have also tried the plugin.shell("logcat") command ib the JS console window but don't get any android-specific logs there either.

What should I do differently in order to be able to do logs from my Android app in Google Arc Welder?


回答1:


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



来源:https://stackoverflow.com/questions/32574232/how-to-get-logcat-output-on-pc-from-google-arc-welder-cordova-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!