How to get logcat output on PC from Google Arc Wel

2019-03-22 03:58发布

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条回答
时光不老,我们不散
2楼-- · 2019-03-22 04:25

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

查看更多
登录 后发表回答