[Development] [Request] Add Info to QDebug

Kurt Pattyn pattyn.kurt at gmail.com
Sun Dec 22 11:49:57 CET 2013

On 22 Dec 2013, at 05:51, development-request at qt-project.org wrote:

> From: Thiago Macieira <thiago.macieira at intel.com>
> Subject: Re: [Development] [Request] Add Info to QDebug
> Date: 21 Dec 2013 17:15:20 GMT+1
> To: development at qt-project.org
> On sábado, 21 de dezembro de 2013 14:23:10, Kurt Pattyn wrote:
>> Qt currently supports the following ‘severity’ levels for logging: Debug,
>> Warning, Critical, Fatal and System.
>> I propose to add the following levels: Info and Error, with associated
>> methods qInfo() and qError(). Particularly, the Info severity can be
>> interesting to have applications output log messages that are not warnings,
>> but also not debug messages. Error would fit between Warning and Critical.
> See the Gerrit submissions for the logging framework.

Can you be more precise what you mean? I have been looking into Gerrit, but have found nothing regarding info and error severities.
The logging framework is making use of the QMessageLogger class. Having an info and error severity, would benefit the logging framework as well (and make it more syslog-alike).
I’ve already submitted a patch on the dev branch (https://codereview.qt-project.org/#change,74338) with the required changes.

I am also wondering what the best way is to make use of ‘facilities’ in the logging framework. Some applications need a clear separation between auditing logs (read security related events) and normal application events.
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131222/c4e10659/attachment.html>

More information about the Development mailing list