QMessageLogContext in release build
i want to store the additional informations of the
In the docs is written:
Note: By default, this information is recorded only in debug builds. You can overwrite this explicitly by defining QT_MESSAGELOGCONTEXT or QT_NO_MESSAGELOGCONTEXT.
But when i define QT_MESSAGELOGCONTEXT in my main.cpp the file, line etc. stoll will not be stored.
What i am doing wrong?
You should rather add that define in your .pro file.
Sorry for the late reply.
I added the define in the pro file and everything works, thanks!