summaryrefslogtreecommitdiff
path: root/src/logging
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-25 10:53:35 -0500
committersanine <sanine.not@pm.me>2021-09-25 10:53:35 -0500
commit1895d16f8ad5487db25650c628f4d9eaf8542e80 (patch)
tree78d6ae10f327250b8ec4d0781a97e6bd58b83f21 /src/logging
parent732aca2a13ebab4f4fb3418b103b91d57e698ccb (diff)
add honey_warn(), honey_error(), and honey_fatal() logging macros
Diffstat (limited to 'src/logging')
-rw-r--r--src/logging/logging.h3
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