From 732aca2a13ebab4f4fb3418b103b91d57e698ccb Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 25 Sep 2021 10:45:36 -0500 Subject: add honey_info() log function --- src/logging/logging.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/logging/logging.h') diff --git a/src/logging/logging.h b/src/logging/logging.h index 6589533..2d50b67 100644 --- a/src/logging/logging.h +++ b/src/logging/logging.h @@ -15,6 +15,7 @@ extern struct honey_log_info_t honey_log_info; const char * honey_log_level_str(); + void honey_log_set_level(enum honey_log_level_t level); enum honey_log_level_t honey_log_get_level(); @@ -25,6 +26,7 @@ void honey_log(enum honey_log_level_t required_level, const char *prefix, const char *fmt, ...); -#define honey_debug(...) honey_log(DEBUG, "[DEBUG] ", __VA_ARGS__) +#define honey_debug(...) honey_log(DEBUG, "[DEBUG]", __VA_ARGS__) +#define honey_info(...) honey_log(INFO, "[INFO]", __VA_ARGS__) #endif -- cgit v1.2.1