'Output GeckoView web extension console.log to Android logcat
Is it possible to have console.log in background and content scripts output into Android logcat?
GeckoView runtime settings contains javaScriptEnabled, which works for non extension console outputs. Their Messaging Example also showcases browser.runtime.sendNativeMessage, which can be handled via MessageDelegate. However, the console.log outputs in the scripts don't seem to be affected by either.
Solution 1:[1]
I believe this is what you are looking for: setConsoleOutputEnabled
setConsoleOutputEnabled will print your console log to both the browser console and logcat. From what I read you should only do this for debugging since it may use quite a bit of resource.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
