aboutsummaryrefslogtreecommitdiff
path: root/include/libseat.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-08-27 15:56:16 +0000
committerKenny Levinsen <kl@kl.wtf>2020-08-28 01:21:57 +0200
commit07ceeeebe014374626904e5d7c8a20d1a45453fe (patch)
treea2e11abccf998199c01d2424f0a19eb85449f8f0 /include/libseat.h
parent48b9bf47075271c91097eba4bf8e9316aa33f9c8 (diff)
Introduce libseat_set_log_level
The default level is SILENT. log_init no longer takes an initial log level (so that calls to libseat_set_log_level prior to log_init work correctly).
Diffstat (limited to 'include/libseat.h')
-rw-r--r--include/libseat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libseat.h b/include/libseat.h
index be19c43..891cb86 100644
--- a/include/libseat.h
+++ b/include/libseat.h
@@ -160,4 +160,12 @@ typedef void (*libseat_log_func)(enum libseat_log_level level, const char *forma
*/
void libseat_set_log_handler(libseat_log_func handler);
+/*
+ * Sets the libseat log level.
+ *
+ * Only log messages whose level is lower or equal than the current log level
+ * will be processed, others will be ignored.
+ */
+void libseat_set_log_level(enum libseat_log_level level);
+
#endif