That's exactly right.

Category log is not on at all at default.
If category log is on the default output is used (same of qDebug()).
Only logging in an output log file is active if you explicit set this in your 
config file.
Activation of category log comes from outside via configuration file and maybe 
environment variable but no recompiling neccessary.

--
 wbeck



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf 
Of ext BRM
Sent: Friday, February 03, 2012 11:33 AM
To: [email protected]
Subject: Re: [Development] QLog ( Work on qDebug and friends)

----- Original Message -----
> From: "[email protected]" <[email protected]>
> To: [email protected]; [email protected]
> Cc: [email protected]
> 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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to