21 lines
952 B
C
21 lines
952 B
C
#ifndef TARIFF_GLOBAL_DEFINES_H_INCLUDED
|
|
#define TARIFF_GLOBAL_DEFINES_H_INCLUDED
|
|
|
|
#define DBG_HEADER "(" << __func__ << ":" << __LINE__ << ")"
|
|
|
|
#define DBG_EMERGENCY (0) // System is unusable
|
|
#define DBG_ALERT (1) // Action must be taken immediately
|
|
#define DBG_CRITICAL (2) // Critical conditions
|
|
#define DBG_ERROR (3) // Error conditions
|
|
#define DBG_WARNING (4) // Warning conditions
|
|
#define DBG_NOTICE (5) // Normal but significant conditions
|
|
// Conditions that are not error conditions, but that may require special handling
|
|
#define DBG_INFORMATION (6) // Informational messages
|
|
// Confirmation that the program is working as expected
|
|
#define DBG_DEBUG (7) // Debug-level messages
|
|
// Messages that contain information normally of use only when debugging a program
|
|
|
|
extern int DBG_LEVEL;
|
|
|
|
#endif // TARIFF_GLOBAL_DEFINES_H_INCLUDED
|