Trace Levels
[Trace]

Trace levels define the severity of a trace statement. More...

Collaboration diagram for Trace Levels:

Defines

#define TRACE_LEVEL_NONE   4
 NONE: No statement printed ever, use to disable trace.
#define TRACE_LEVEL_ERROR   3
 ERROR: Error Level.
#define TRACE_LEVEL_WARN   2
 WARN: Warning level.
#define TRACE_LEVEL_INFO   1
 INFO: Info level.
#define TRACE_LEVEL_DEBUG   0
 DEBUG: Debug level.
#define TRACE_LEVEL_DEFAULT   TRACE_LEVEL_INFO
 Default trace level.

Detailed Description

Trace levels define the severity of a trace statement.

Trace levels must go in order from least important = 0 to most important for the comparisons to work. Do not add new trace levels without adjusting the array of trace level names too!

Setting the trace level
The default trace level is set in TRACE_LEVEL_DEFAULT. However it can be changed on a per-file basis by the following before including any FIP headers, for example to use 'debug' level trace:
 #define TRACE_LEVEL TRACE_LEVEL_DEBUG
 #include "fip.h"
If you want to make TRACE_LEVEL, dynamic, just define it to what your global variable is, for example:
extern unsigned char globalTraceLevel;
#define TRACE_LEVEL globalTraceLevel
#include "fip.h"

Generated on Wed Dec 8 13:00:49 2010 for FIP by  doxygen 1.5.7.1