From 5d5af62d63c331245a1cb41433fabc0ac25754b6 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 14 Jun 2022 20:24:14 -0500 Subject: add honey_set_log_level --- src/logging/logging.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/logging/logging.c') 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; -- cgit v1.2.1