debug.h

An easy way to make good output for debugging orxonox

An easy way to disable all output if it is not necessary.

Definition:

ErrorMode Level:

--------------------------------------------

#define NO	0

#define ERROR 1

#define WARNING	2

#define INFORMATION	3

#define DEBUGING	4

debug.h

Usage:

PRINT(n)([printf-commands]);

n: debug level

[printf-commands]: see printf-man-page

Example:

PRINT(2)(“output something”);

=>	output something

PRINTF(3)(“output something”);

=> PRINT.sxi:p2L3:output something

2005-03-09T21:30:21