aboutsummaryrefslogtreecommitdiff
path: root/include/olm/logging.hh
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-16 11:04:26 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-16 11:04:26 +0100
commit48cb5f925d3bf21c51818dbe46c864a6975ccc75 (patch)
treef70373784795f7206107147c9aba9b1dfc1d4f25 /include/olm/logging.hh
parent11dbf2aab3e9a65148a40ac6b5b1124929344c1a (diff)
Add olm::log_enabled_for
Diffstat (limited to 'include/olm/logging.hh')
-rw-r--r--include/olm/logging.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/olm/logging.hh b/include/olm/logging.hh
index f174712..ff84615 100644
--- a/include/olm/logging.hh
+++ b/include/olm/logging.hh
@@ -27,6 +27,8 @@ const unsigned int LOG_TRACE = 6;
void set_log_level(unsigned int log_level);
+bool log_enabled_for(unsigned int level, const char *category);
+
__attribute__((__format__ (__printf__, 3, 4)))
void logf(unsigned int level, const char *category,
const char *format, ...);