Go to the documentation of this file.
29 #define as_log_error_enabled() (g_as_log.callback && AS_LOG_LEVEL_ERROR <= g_as_log.level)
30 #define as_log_warn_enabled() (g_as_log.callback && AS_LOG_LEVEL_WARN <= g_as_log.level)
31 #define as_log_info_enabled() (g_as_log.callback && AS_LOG_LEVEL_INFO <= g_as_log.level)
32 #define as_log_debug_enabled() (g_as_log.callback && AS_LOG_LEVEL_DEBUG <= g_as_log.level)
33 #define as_log_trace_enabled() (g_as_log.callback && AS_LOG_LEVEL_TRACE <= g_as_log.level)
35 #define as_log_error(__fmt, ... ) \
36 if (g_as_log.callback) {\
37 (g_as_log.callback) (AS_LOG_LEVEL_ERROR, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
40 #define as_log_warn(__fmt, ... ) \
41 if (g_as_log.callback && AS_LOG_LEVEL_WARN <= g_as_log.level) {\
42 (g_as_log.callback) (AS_LOG_LEVEL_WARN, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
45 #define as_log_info(__fmt, ... ) \
46 if (g_as_log.callback && AS_LOG_LEVEL_INFO <= g_as_log.level) {\
47 (g_as_log.callback) (AS_LOG_LEVEL_INFO, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
50 #define as_log_debug(__fmt, ... ) \
51 if (g_as_log.callback && AS_LOG_LEVEL_DEBUG <= g_as_log.level) {\
52 (g_as_log.callback) (AS_LOG_LEVEL_DEBUG, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\
55 #define as_log_trace(__fmt, ... ) \
56 if (g_as_log.callback && AS_LOG_LEVEL_TRACE <= g_as_log.level) {\
57 (g_as_log.callback) (AS_LOG_LEVEL_TRACE, __func__, __FILE__, __LINE__, __fmt, ##__VA_ARGS__);\