[Development] qLog wildcards categories

zsolt.simon at nokia.com zsolt.simon at nokia.com
Thu Mar 1 06:10:22 CET 2012


Hi,

I personally like better the option A because it feels more natural and it is more logical in that way that last rule is always overwriting previous rules.

Regards,
Zsolt

-----Original Message-----
From: development-bounces+zsolt.simon=nokia.com at qt-project.org [mailto:development-bounces+zsolt.simon=nokia.com at qt-project.org] On Behalf Of Beck Wolfgang (Nokia-MP/Brisbane)
Sent: Thursday, March 01, 2012 2:01 PM
To: development at qt-project.org
Subject: [Development] qLog wildcards categories

Hi guys,

I need to have a vote on a implementation detail regarding filtering of wildcards categories.
Let's say you have a category defined and a wildcard category as well.
A: Do you think the order in the configuration file plays an important rule or 
B: If you set specific a category let's say com.Nokia.whatever the wildcard category will be ignored for this specific category

e.g. A:
----------------------------------------------
in QLog config file
a* = true
a.b = false

qCDebug(a.c) will be written
qCDebug(a.b) will be ignored
----------------------------------------------
in QLog config file
a.b = false
a* = true

qCDebug(a.c) will be written
qCDebug(a.b) will be written
----------------------------------------------

e.g. B:
----------------------------------------------
in QLog config file
a.b = true
a* = false

qCDebug(a.c) will be ignored
qCDebug(a.b) will be written
----------------------------------------------
in QLog config file
a.b = false
a* = true

qCDebug(a.c) will be written
qCDebug(a.b) will be ignored

Cheers,
 WB
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list