[Development] QLog ( Work on qDebug and friends)

BRM bm_witness at yahoo.com
Fri Feb 3 02:33:24 CET 2012


----- Original Message -----
> From: "wolfgang.beck at nokia.com" <wolfgang.beck at nokia.com>
> To: robin+qt at viroteck.net; david.faure at kdab.com
> Cc: development at qt-project.org
> Sent: Thursday, February 2, 2012 6:00 PM
> Subject: Re: [Development] QLog ( Work on qDebug and friends)
> 
> I think we can change the current QLog.
> 
> Category using qDebug(category) and writing stuff out in an output file.
> For me a logging file is much more important than system logs or socket because 
> you can ask the customer that uses your Qt application to send you back the 
> output log file.
> Other cool stuff like writing into sockets can be done in an addOn or even in a 
> plugin.

qDebug() and friends should continue outputting as they currently do. The only difference should be the addition of the category/area (whatever you want to call it);
and even then that should be available to the message handler as additional information that could be used; but the default probably should not do so.


Anything else should be in the add-on as it is a preference for the application usage.
Some instances its better to have a file; others a shared system. It's a decision that should be left up to each application.
That's why it should be in the add-on only.

Ben



More information about the Development mailing list