aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util/log.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-01 11:31:38 -0500
committerGitHub <noreply@github.com>2018-01-01 11:31:38 -0500
commitae3810c2a76541c24ad47e7dd4d36f2b142eef52 (patch)
treef6a6e82ee67e59abc1005c3582e8873f02b2fcff /include/wlr/util/log.h
parent80ed4d4d20807f021c473b77d44ce6b464afc0c7 (diff)
parent5a26ed645abd1b1f2582c42e017cf2b043fdb0c3 (diff)
Merge pull request #546 from 4e554c4c/config_logs
Allow configurable verbosity
Diffstat (limited to 'include/wlr/util/log.h')
-rw-r--r--include/wlr/util/log.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/util/log.h b/include/wlr/util/log.h
index b017cc96..3d3f25f9 100644
--- a/include/wlr/util/log.h
+++ b/include/wlr/util/log.h
@@ -16,7 +16,9 @@ typedef enum {
typedef void (*log_callback_t)(log_importance_t importance, const char *fmt, va_list args);
-void wlr_log_init(log_callback_t callback);
+// Will log all messages less than or equal to `verbosity`
+// If `callback` is NULL, wlr will use its default logger.
+void wlr_log_init(log_importance_t verbosity, log_callback_t callback);
#ifdef __GNUC__
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))