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

Error message logging macros
[Logging]


Defines

#define EPF   Utils::LineLogLevel(Utils::errorClass,-3,__FILE__,__LINE__).print
#define EPF0(cat, format)
#define EPF1(cat, format, arg)
#define EPF2(cat, format, arg1, arg2)
#define EPF3(cat, format, arg1, arg2, arg3)
#define EPF4(cat, format, arg1, arg2, arg3, arg4)
#define EPF5(cat, format, arg1, arg2, arg3, arg4, arg5)

Detailed Description

Log an error message with the given category. These messages are produced in debug and release builds and should be used when the application is unlikely to be able to continue without data loss or serious fault.

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 EPF   Utils::LineLogLevel(Utils::errorClass,-3,__FILE__,__LINE__).print
 

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

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

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

#define EPF0 cat,
format   ) 
 

Value:

Utils::Log::theLog()->print(Utils::errorClass, cat,  \
                    -3, __FILE__, __LINE__,              \
                    format)
format expects 0 args.
See also:
EPF

#define EPF1 cat,
format,
arg   ) 
 

Value:

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

#define EPF2 cat,
format,
arg1,
arg2   ) 
 

Value:

Utils::Log::theLog()->print(Utils::errorClass, cat,  \
                    -3, __FILE__, __LINE__,              \
                    format, arg1, arg2)
format expects 2 args.
See also:
EPF

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

Value:

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

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

Value:

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

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

Value:

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

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