Writing to companion's javascript console

The notifier.log is able to log on the adb console but also on the companion's javascript console, which I find handy, the only point is that 4 lines are written each time ( which seems too much ; - ), so wondering: is it possible to write directly to the companion's javascript console?

Hello. Why would you want to do that? That is not possible. But you have a better option, i.e. the Debug Panel:

Logs are also sent over WebRTC to the IDE.

Check out Notifier's LogInfo block:

    if (form.isRepl()) {
      RetValManager.appendLogValue(message, "Notifier", "OK", "Info");
    }

Sorry, my mistake, I should have written: "in the javascript console of the browser where is app inventor's editor".
But the debug panel ( you showed ) is exactly what I was looking for.
Didn't even know it existed ( also not sure the notifier documentation mention this ).
Thanks

2 Likes