diff options
author | sanine <sanine.not@pm.me> | 2021-09-25 10:53:35 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-09-25 10:53:35 -0500 |
commit | 1895d16f8ad5487db25650c628f4d9eaf8542e80 (patch) | |
tree | 78d6ae10f327250b8ec4d0781a97e6bd58b83f21 /src/logging | |
parent | 732aca2a13ebab4f4fb3418b103b91d57e698ccb (diff) |
add honey_warn(), honey_error(), and honey_fatal() logging macros
Diffstat (limited to 'src/logging')
-rw-r--r-- | src/logging/logging.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |