Provides functions for simple creation of traces at four levels (none, error, info and debug).
The default trace level is info, debug if _DEBUG flag is set.
LevelTrace.cpp
LevelTrace.h
Always printed.
Printed if TRACELEVEL_ERROR or higher enabled.
Printed if TRACELEVEL_INFO or higher enabled.
Printed if TRACELEVEL_DEBUG enabled.
returns current trace level.
TRACELEVEL_NONE
TRACELEVEL_ERROR
TRACELEVEL_INFO
TRACELEVEL_DEBUG
Changes trace level.
Creates custom trace function.
Trace macros work like printf() functions. The input to the trace functions must be surrounded by a two sets of parenthesis.
TINFO(("Trace output of a %s","string"));
A user defined Trace Function can be set with:
The user trace function can also call back to the default console trace function: