[Development] QLog ( Work on qDebug and friends)

David Faure david.faure at kdab.com
Tue Feb 21 11:08:13 CET 2012


On Tuesday 21 February 2012 10:02:23 kai.koehne at nokia.com wrote:
> I agree with that: On the desktop it's quite handy to see also detailed
> output on stderr/the shell (which one can redirect to a file if needed).
> But I also think that qLog() messages shouldn't show up by default for
> normal users, that is, unless the category has been explicitly enabled.

True.

> So how about adding another QtMsgType called QLogMsg, that qLog() uses? In
> contrast to qDebug/QtDebugMsg, qLog/QtLogMsg messages would not be
> processed by default, unless the configuration file (or an environment
> variable) says so ...

Isn't the same information given by "a category is present in the 
QMessageLogContext"? All qLog calls are forced to get a category, right?

-- 
David Faure | david.faure at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions




More information about the Development mailing list