Re: [Interest] Replace QML console object

2020-07-24 Thread Furkan Uzumcu
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

[Interest] Replace QML console object

2020-07-06 Thread Richard Weickelt
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