yumapro
24.10-1
YumaPro SDK
|
Logging macro definitions. More...
Macros | |
#define | LOGERROR (log_get_system_log_level() >= LOG_DEBUG_ERROR) |
Check if at least log-level=error. | |
#define | LOGWARN (log_get_system_log_level() >= LOG_DEBUG_WARN) |
Check if at least log-level=warn. | |
#define | LOGINFO (log_get_system_log_level() >= LOG_DEBUG_INFO) |
Check if at least log-level=info. | |
#define | LOGDEBUG (log_get_system_log_level() >= LOG_DEBUG_DEBUG) |
Check if at least log-level=debug. | |
#define | LOGDEBUG2 (log_get_system_log_level() >= LOG_DEBUG_DEBUG2) |
Check if at least log-level=debug2. | |
#define | LOGDEBUG3 (log_get_system_log_level() >= LOG_DEBUG_DEBUG3) |
Check if at least log-level=debug3. | |
#define | LOGDEBUG4 (log_get_system_log_level() >= LOG_DEBUG_DEBUG4) |
Check if at least log-level=debug4. | |
Logging macro definitions.
The main usage is testing the log-level
if (LOGDEBUG) { log_debug("\nThis code not hit unless log-level >= debug"); }