ar_osal/api/ar_osal_log.h
AR Osal Log
Defines public APIs for message logging.
Header:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 QLI Version 2.1 is now live ! Switch to new version to check out the latest content
Defines public APIs for message logging.
ar_osal/api/ar_osal_log.h
ar_log_initvoid ar_log_init(void)
ar_log_deinitvoid ar_log_deinit(void)
ar_logvoid ar_log(uint32_t level, const char_t *log_tag, const char_t *file, const char_t *fn, int32_t ln, const char_t *format,...)
ar_set_log_levelvoid ar_set_log_level(uint32_t level)
AR_CRITICAL#define AR_CRITICAL (0x1)
AR_ERROR#define AR_ERROR (0x2)
AR_DEBUG#define AR_DEBUG (0x4)
AR_INFO#define AR_INFO (0x8)
AR_VERBOSE#define AR_VERBOSE (0x10
AR_LOG_FILE_NAME#define AR_LOG_FILE_NAME __FILE__
AR_LOG_VERBOSE#define AR_LOG_VERBOSE if (ar_log_lvl & AR_VERBOSE) { \
ar_log(AR_VERBOSE, log_tag, AR_LOG_FILE_NAME, __FUNCTION__, __LINE__, __VA_ARGS__); \
}
AR_LOG_INFO#define AR_LOG_INFO if (ar_log_lvl & AR_INFO) { \
ar_log(AR_INFO, log_tag, AR_LOG_FILE_NAME, __FUNCTION__, __LINE__, __VA_ARGS__); \
}
AR_LOG_DEBUG#define AR_LOG_DEBUG if (ar_log_lvl & AR_DEBUG) { \
ar_log(AR_DEBUG, log_tag, AR_LOG_FILE_NAME, __FUNCTION__, __LINE__, __VA_ARGS__); \
}
AR_LOG_ERR#define AR_LOG_ERR if (ar_log_lvl & AR_ERROR) { \
ar_log(AR_ERROR, log_tag, AR_LOG_FILE_NAME, __FUNCTION__, __LINE__, __VA_ARGS__); \
}
AR_LOG_CRITICAL#define AR_LOG_CRITICAL if (ar_log_lvl & AR_CRITICAL) { \
ar_log(AR_CRITICAL, log_tag, AR_LOG_FILE_NAME, __FUNCTION__, __LINE__, __VA_ARGS__); \
}
AR_FATAL_PRIO#define AR_FATAL_PRIO (AR_CRITICAL)
AR_ERROR_PRIO#define AR_ERROR_PRIO (AR_ERROR )
AR_HIGH_PRIO#define AR_HIGH_PRIO (AR_INFO )
AR_MED_PRIO#define AR_MED_PRIO (AR_DEBUG )
AR_LOW_PRIO#define AR_LOW_PRIO (AR_VERBOSE )
AR_LOG_FATAL#define AR_LOG_FATAL AR_LOG_CRITICAL(log_tag, __VA_ARGS__)
AR_LOG_HIGH#define AR_LOG_HIGH AR_LOG_INFO(log_tag, __VA_ARGS__)
AR_LOG_ERROR#define AR_LOG_ERROR AR_LOG_ERR(log_tag, __VA_ARGS__)
AR_LOG_MED#define AR_LOG_MED AR_LOG_DEBUG(log_tag, __VA_ARGS__)
AR_LOG_LOW#define AR_LOG_LOW AR_LOG_VERBOSE(log_tag, __VA_ARGS__)
ar_log_lvluint32_t ar_log_lvl
