I need to insert some log-points in a JavaScript that interprets some websocket data on a homepage. I can easily insert the logpoints by inserting them manually using the developer tools in Chrome. However, I would like automize this by doing it programmatically using python selenium. Is it possible to insert a logpoint in the JavaScript from python using selenium and ChromeDriver (or alternatively Firefox and Geckdriver)?
Here is a screenshot from the developer tools of what I would like to be able to do from python: