[Development] QLog ( Work on qDebug and friends)

wolfgang.beck at nokia.com wolfgang.beck at nokia.com
Wed Feb 22 01:31:35 CET 2012

Yes David,
Absolutely right.


-----Original Message-----
From: ext David Faure [mailto:david.faure at kdab.com] 
Sent: Tuesday, February 21, 2012 8:08 PM
To: Koehne Kai (Nokia-MP/Berlin)
Cc: Beck Wolfgang (Nokia-MP/Brisbane); development at qt-project.org
Subject: Re: [Development] QLog ( Work on qDebug and friends)

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.


> 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