diff options
author | James Prestwood <prestwoj@gmail.com> | 2024-02-13 05:16:19 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-02-14 10:58:42 -0600 |
commit | 11c1f40a77c7d9d9cf7a29ae1d91dab374e5e90c (patch) | |
tree | 01effa1e10aa235a51bc5760bdbf2e92011f0672 | |
parent | 26e4465f538b98693bbf88e3a7d0aea31c28e53f (diff) |
log: add l_notice
Adds the ability to use a notice (5) log level.
-rw-r--r-- | ell/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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__) |