aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-02-13 05:16:19 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-02-14 10:58:42 -0600
commit11c1f40a77c7d9d9cf7a29ae1d91dab374e5e90c (patch)
tree01effa1e10aa235a51bc5760bdbf2e92011f0672
parent26e4465f538b98693bbf88e3a7d0aea31c28e53f (diff)
log: add l_notice
Adds the ability to use a notice (5) log level.
-rw-r--r--ell/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ell/log.h b/ell/log.h
index 72dbed34..7ddf6630 100644
--- a/ell/log.h
+++ b/ell/log.h
@@ -17,6 +17,7 @@ extern "C" {
#define L_LOG_ERR 3
#define L_LOG_WARNING 4
+#define L_LOG_NOTICE 5
#define L_LOG_INFO 6
#define L_LOG_DEBUG 7
@@ -84,6 +85,7 @@ void l_debug_disable(void);
#define l_error(format, ...) l_log(L_LOG_ERR, format, ##__VA_ARGS__)
#define l_warn(format, ...) l_log(L_LOG_WARNING, format, ##__VA_ARGS__)
+#define l_notice(format, ...) l_log(L_LOG_NOTICE, format, ##__VA_ARGS__)
#define l_info(format, ...) l_log(L_LOG_INFO, format, ##__VA_ARGS__)
#define l_debug(format, ...) L_DEBUG_SYMBOL(__debug_desc, format, ##__VA_ARGS__)