QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Information message logging macros
[Logging]


Defines

#define IPF   Utils::LineLogLevel(Utils::infoClass,-1,__FILE__,__LINE__).print
#define IPF0(cat, format)
#define IPF1(cat, format, arg)
#define IPF2(cat, format, arg1, arg2)
#define IPF3(cat, format, arg1, arg2, arg3)
#define IPF4(cat, format, arg1, arg2, arg3, arg4)
#define IPF5(cat, format, arg1, arg2, arg3, arg4, arg5)

Detailed Description

Log an information message with the given category. These messages are produced in debug and release builds and should be used for messages that the user is required to see.

Parameters:
cat Category. This can be either an unsigned int obtained using Log::getCategory() or a string.
format printf() style format string. Ensure the correct number of '%' operators for the given number of arguments.

Define Documentation

#define IPF   Utils::LineLogLevel(Utils::infoClass,-1,__FILE__,__LINE__).print
 

IPF logs an error message using a variable number of arguments to the format string. This macro is more flexible than IPF0, IPF1, ..., which expect you to supply the stated number of parameters and you are advised to use it instead of them.

Example 1: IPF("tutorial", "Can't open database '%%s'", dbName);

Example 2: IPF(logger, "Can't open database '%%s'", dbName);

#define IPF0 cat,
format   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format)
format expects 0 args.
See also:
IPF

#define IPF1 cat,
format,
arg   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format, arg)
format expects 1 arg.
See also:
IPF

#define IPF2 cat,
format,
arg1,
arg2   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format, arg1, arg2)
format expects 2 args.
See also:
IPF

#define IPF3 cat,
format,
arg1,
arg2,
arg3   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format, arg1, arg2, arg3)
format expects 3 args.
See also:
IPF

#define IPF4 cat,
format,
arg1,
arg2,
arg3,
arg4   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format, arg1, arg2, arg3, arg4)
format expects 4 args.
See also:
IPF

#define IPF5 cat,
format,
arg1,
arg2,
arg3,
arg4,
arg5   ) 
 

Value:

Utils::Log::theLog()->print(Utils::infoClass, cat,   \
                    -1, __FILE__, __LINE__,              \
                    format, arg1, arg2, arg3, arg4, arg5)
format expects 5 args.
See also:
IPF

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004