diff options
author | sanine <sanine.not@pm.me> | 2022-06-14 20:24:14 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-06-14 20:24:14 -0500 |
commit | 5d5af62d63c331245a1cb41433fabc0ac25754b6 (patch) | |
tree | 500be53f3973bbbee00da5f95bc213b5689535c7 /src/logging/logging.c | |
parent | 5a95cd1858be9ed3ad38d306ba93beb2b1e9864c (diff) |
add honey_set_log_level
Diffstat (limited to 'src/logging/logging.c')
-rw-r--r-- | src/logging/logging.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logging/logging.c b/src/logging/logging.c index 4f717cb..cb720a4 100644 --- a/src/logging/logging.c +++ b/src/logging/logging.c @@ -3,6 +3,12 @@ int _honey_log_level = HONEY_WARN; +void honey_set_log_level(int level) +{ + _honey_log_level = level; +} + + void honey_log(int level, const char *fmt, ...) { //if (level > _honey_log_level) return; |