This class represents a "feature" in the logging framework/system. More...
#include <logging.h>
Public Member Functions | |
ContextFeature (QString name) | |
Constructor for a new feature.name is the feature name. | |
QString | getName () const |
Returns the name of the feature. |
This class represents a "feature" in the logging framework/system.
A feature can be ie. "multithreading", "introspection", "dbus" or anything that makes sense in your setup. Using features you can later get more filtered debug output. You most likely want to use this class like this:
... contextDebug() << ContextFeature("introspection") << "Message"; ...
One message can belong to many features or to none.
ContextFeature::ContextFeature | ( | QString | name | ) |
Constructor for a new feature.name is the feature name.
QString ContextFeature::getName | ( | ) | const |
Returns the name of the feature.