]> the.earth.li Git - onak.git/blobdiff - log.h
Add getlogthreshold() to obtain current log level setting
[onak.git] / log.h
diff --git a/log.h b/log.h
index 77770bc1abc67d0a6acfda5845363b7ac939e729..867d6ea4e52ead5e51da35451c803b31d51f9755 100644 (file)
--- a/log.h
+++ b/log.h
@@ -88,6 +88,14 @@ void cleanuplogthing(void);
  */
 loglevels setlogthreshold(loglevels loglevel);
 
+/*
+ *     getlogthreshold - get the threshold for log output
+ *
+ *     Returns the threshold for log output; anything logged with a log level
+ *     lower than this will be silently dropped.
+ */
+loglevels getlogthreshold(void);
+
 /*
  *     logthing - output a log entry
  *      @loglevel: The level of the log.