Merry Christmas everyone,
I want to redirect all log output of my application (which is console.log()) to my UDP logger. Therefore I created a function by using this as a reference.
In my test application (without VPlay, plain Qt 5.3) it works just as expected. But if I call qInstallMessageHandler(myFunc) in my game I either:
– get no log at all (just the default console log)
– only the first two logs are outputted, the rest again in console
– the first logs are to console and the following works as expected (I can live with it but…)
Here’s the main.cpp of my game, you can see multiple calls of qInstallMessageHandler(). I inserted multiple calls to get the result of scenario 3. Less calls either result in scenario 1, 2 or something else. There must be something completely wrong. It’s either a Qt but, a VPlay bug or I’m loosing my mind, because I have nothing better to do on Christmas. I hope someone can take a look at it.