On 04 Feb 2014, at 22:37, Tero Siironen <tero.siiro...@iki.fi> wrote: > Andrey Kozhevnikov <coderusin...@gmail.com> kirjoitti 4.2.2014 kello 23.14: > >> This is messages handler i'm using in my projects: > > > This doesn’t seem to make a difference for me, the log file still contains > only c++ side debug prints, qml prints (like console.log()) are not handled > with messagehandler. > > Actually I found out that even if set in pro-file: > DEFINES +=QT_NO_DEBUG_OUTPUT > DEFINES +=QT_NO_WARNING_OUTPUT > > I still get qml debug prints printed out to console, so it seems that those > prints from qml are not handled via normal debug handling at all? > > I would like to get no debug printing at all, or then just to file.
DEFINES in qmake adds additional defines (-D) to the cflags used to build C++ affect code compiled with them. QtDeclarative was not compiled with these defines, so your adding them won’t affect console.log (whose C++ implementation lives inside QtDeclarative). If you don’t want debug prints, you need to install a message handler (you say you’ve tried this and it doesn’t work, I can’t answer why that would be the case, it should work, as it uses the same infrastructure). BR, Robin _______________________________________________ SailfishOS.org Devel mailing list