Qt Extended Home · Index · Classes · Headers · Overviews codeless banner

<qlog.h> - <qlog.h>

The <qlog.h> header enables categorized logging. More...

Macros

The <qlog.h> header enables categorized logging.

See also <qtopiadesktoplog.h>.


Macro Documentation

QLOG_ENABLE ( CATEGORY )

Register a category for unconditional logging. This enables qLog(CATEGORY).

QLOG_OPTION ( CATEGORY, FUNCTION )

Register a category for conditional logging. This enables qLog(CATEGORY) but the log messages are not displayed unless CATEGORY is enabled (as determined by FUNCTION.

It is typical to avoid using this macro directly, instead relying on a wrapper define.

    bool myCheckFunction( const char *category );
    #define MYLOG_OPTION(CATEGORY) QLOG_OPTION(CATEGORY,myCheckFunction(#CATEGORY))

QLOG_UNCATEGORIZED ()

Enable the qLog() macro.

qLog ( CATEGORY )

Perform categorized logging against CATEGORY. Note that CATEGORY should have been defined using QLOG_ENABLE, QLOG_OPTION or QLOG_OPTION_VOLATILE.

qLog ()

This is an overloaded member function, provided for convenience.

Perform uncategorized logging. Note that the QLOG_UNCATEGORIZED macro must have been used to enable this.


Copyright © 2009 Trolltech
Qt Extended Sync Agent Documentation