Go to the source code of this file.
◆ xr_log_alert
◆ xr_log_critical
◆ xr_log_debug
◆ xr_log_emergency
◆ xr_log_error
◆ xr_log_info
◆ xr_log_notice
◆ xr_log_warning
◆ xr_runtime_assert
| #define xr_runtime_assert |
( |
|
condition, |
|
|
|
message |
|
) |
| |
Value:do { \
if (!(condition)) { \
log_error("Assertion failed at " __FILE__ \
":%d : %s\nWhen testing condition:\n %s", \
__LINE__, message, #condition); \
abort(); \
} \
} while (0)
◆ XRLogLevel
| Enumerator |
|---|
| XR_LOG_DEBUG | debug message
|
| XR_LOG_INFO | informational message
|
| XR_LOG_NOTICE | normal, but significant, condition
|
| XR_LOG_WARNING | warning conditions
|
| XR_LOG_ERR | error conditions
|
| XR_LOG_CRIT | critical conditions
|
| XR_LOG_ALERT | action must be taken immediately
|
| XR_LOG_EMERG | system is unusable
|
◆ log_message()
| void log_message |
( |
XRLogLevel |
level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Log message.
- Parameters
-
| level | Message level defined in XRLogLevel |
| format | Pointer to a string which consists of characters along with optional format specifiers starting with % |