I know of two ways you can go about doing this.
1- Add new function prototypes to console object and use those.
> console.log2 = (message) => console.log("[LOG] ", message)
> console.log2(“Here’s a message”)
>> // [LOG] Here’s a message
2- You can register your own logger as a context property a
I want to replace QML's console object with a custom implementation.
I have tried to replace the "console" property in the global object with not
luck.
I have tried to replace the method properties of the global console object
with no luck (as described here:
https://stackoverflow.com/questions/26