Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
paulpv
Posts: 14
Registered: ‎08-22-2008
My Device: Not Specified

Device Log Severity levels of qDebug/qWarning/qCritical/qFatal mismatch

The qDebug/qWarning/qCritical/qFatal logging methods show up in the "Device Log" view as having Severity levels of INFO, WARNING, NOTICE, ERROR, respectively.

 

Here is my simple code:

Q_DECL_EXPORT int main(int argc, char **argv)

{
    qDebug("debug"); // Severity==INFO
    qWarning("warning"); // Severity==NOTICE
    qCritical("critical"); // Severity==WARNING
    qFatal("fatal"); // Severity==ERROR and app exits

    return 0;

}

 

bb10 logging levels.png

 

Why the mismatch in Severity levels?

 

Pv