From 1895d16f8ad5487db25650c628f4d9eaf8542e80 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 25 Sep 2021 10:53:35 -0500 Subject: add honey_warn(), honey_error(), and honey_fatal() logging macros --- src/logging/logging.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/logging') diff --git a/src/logging/logging.h b/src/logging/logging.h index 2d50b67..c8a5864 100644 --- a/src/logging/logging.h +++ b/src/logging/logging.h @@ -28,5 +28,8 @@ void honey_log(enum honey_log_level_t required_level, #define honey_debug(...) honey_log(DEBUG, "[DEBUG]", __VA_ARGS__) #define honey_info(...) honey_log(INFO, "[INFO]", __VA_ARGS__) +#define honey_warn(...) honey_log(WARN, "[WARN]", __VA_ARGS__) +#define honey_error(...) honey_log(ERROR, "[ERROR]", __VA_ARGS__) +#define honey_fatal(...) honey_log(FATAL, "[FATAL]", __VA_ARGS__) #endif -- cgit v1.2.1