Broswer Console Logs from WebBrowser

I am using the web browser module version 3.9.10 in Ignition 7.9.11 and am wondering if it is possible to view the console logs from the jxBrowser somewhere. I have been looking through the jxBrowser documentation but haven’t found anything.

From Ignition Support this code worked.

from import ConsoleListener
target='Web Browser'
browser = system.gui.getParentWindow(event).getComponentForPath('Root Container.browser').getBrowser()

class IgnitionListener(ConsoleListener):
    def __init__(self, target='Web Browser'):
        self.logger = system.util.getLogger(target)
        self.levels = {'DEBUG': self.logger.debug, 'ERROR': self.logger.error, 'LOG':, 'WARNING': self.logger.warn}

    def onMessage(self, event):
1 Like