16 #ifndef included_vlib_log_h 17 #define included_vlib_log_h 21 #define foreach_vlib_log_level \ 27 _(5, NOTICE, notice) \ 30 _(8, DISABLED, disabled) 34 #define _(n,uc,lc) VLIB_LOG_LEVEL_##uc = n, 45 #define vlib_log_emerg(...) vlib_log(VLIB_LOG_LEVEL_EMERG, __VA_ARGS__) 46 #define vlib_log_alert(...) vlib_log(VLIB_LOG_LEVEL_ALERT, __VA_ARGS__) 47 #define vlib_log_crit(...) vlib_log(VLIB_LOG_LEVEL_CRIT, __VA_ARGS__) 48 #define vlib_log_err(...) vlib_log(VLIB_LOG_LEVEL_ERR, __VA_ARGS__) 49 #define vlib_log_warn(...) vlib_log(VLIB_LOG_LEVEL_WARNING, __VA_ARGS__) 50 #define vlib_log_notice(...) vlib_log(VLIB_LOG_LEVEL_NOTICE, __VA_ARGS__) 51 #define vlib_log_info(...) vlib_log(VLIB_LOG_LEVEL_INFO, __VA_ARGS__) 52 #define vlib_log_debug(...) vlib_log(VLIB_LOG_LEVEL_DEBUG, __VA_ARGS__) vlib_log_class_t vlib_log_register_class(char *vlass, char *subclass)
#define foreach_vlib_log_level
void vlib_log(vlib_log_level_t level, vlib_log_class_t class, char *fmt,...)
u32 vlib_log_get_indent()