SU debugging macros. More...
#include <sofia-sip/su_log.h>
Go to the source code of this file.
Defines | |
#define | SU_DEBUG_H |
Defined when <sofia-sip/su_debug.h> has been included. | |
#define | SU_DEBUG_MAX |
The maximum debugging level. | |
#define | SU_DEBUG_0(x) |
Log messages at level 0. | |
#define | SU_LERROR(s) |
Log C library errors. | |
#define | SU_LSERROR(s) |
Log socket errors. | |
#define | SU_DEBUG_1(x) |
Log messages at level 1. | |
#define | SU_DEBUG_2(x) |
Log messages at level 2. | |
#define | SU_DEBUG_3(x) |
Log messages at level 3. | |
#define | SU_DEBUG_4(x) |
Log messages at level 4. | |
#define | SU_DEBUG_5(x) |
Log messages at level 5. | |
#define | SU_DEBUG_6(x) |
Log messages at level 6. | |
#define | SU_DEBUG_7(x) |
Log messages at level 7. | |
#define | SU_DEBUG_8(x) |
Log messages at level 8. | |
#define | SU_DEBUG_9(x) |
Log messages at level 9. |
SU debugging macros.
The logging levels and macros to use are defined as follows:
These macros are used to log with module-specific levels. The SU_LOG macro is redefined with a pointer to a module-specific su_log_t structure, e.g., "iptsec_debug.h".
#define SU_DEBUG_0 | ( | x | ) |
Log messages at level 0.
Fatal errors and panic messages should be logged at level 0.
#define SU_DEBUG_1 | ( | x | ) |
Log messages at level 1.
Critical errors and minimal progress at subsystem level should be logged at level 1.
#define SU_DEBUG_2 | ( | x | ) |
Log messages at level 2.
Non-critical errors should be logged at level 2.
#define SU_DEBUG_3 | ( | x | ) |
Log messages at level 3.
Warnings and progress messages should be logged at level 3.
#define SU_DEBUG_4 | ( | x | ) |
Log messages at level 4.
#define SU_DEBUG_5 | ( | x | ) |
Log messages at level 5.
Signaling protocol actions (incoming packets, etc.) should be logged at level 5.
#define SU_DEBUG_6 | ( | x | ) |
Log messages at level 6.
#define SU_DEBUG_7 | ( | x | ) |
Log messages at level 7.
Media protocol actions (incoming packets, etc) should be logged at level 7.
#define SU_DEBUG_8 | ( | x | ) |
Log messages at level 8.
#define SU_DEBUG_9 | ( | x | ) |
Log messages at level 9.
Entering/exiting functions, very verbatim progress should be logged at level 9.
#define SU_DEBUG_MAX |
The maximum debugging level.
#define SU_LERROR | ( | s | ) |
Log C library errors.
#define SU_LSERROR | ( | s | ) |
Log socket errors.