aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 13:17:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 13:17:55 +0100
commitc742eeba369cfce062f2464c8cb3e62405025185 (patch)
tree0fb71a49467f174813ff6f6da6d806b44d22be2c /src/libutil/logger.h
parent219288ea4ffd24399d110b28ff790bcf78eb6532 (diff)
downloadrspamd-c742eeba369cfce062f2464c8cb3e62405025185.tar.gz
rspamd-c742eeba369cfce062f2464c8cb3e62405025185.zip
Add logger counters.
Diffstat (limited to 'src/libutil/logger.h')
-rw-r--r--src/libutil/logger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/logger.h b/src/libutil/logger.h
index e8c71465b..42307fc6c 100644
--- a/src/libutil/logger.h
+++ b/src/libutil/logger.h
@@ -123,6 +123,15 @@ void rspamd_log_debug (rspamd_logger_t *logger);
*/
void rspamd_log_nodebug (rspamd_logger_t *logger);
+/**
+ * Return array of counters (4 numbers):
+ * 0 - errors
+ * 1 - warnings
+ * 2 - info messages
+ * 3 - debug messages
+ */
+const guint64* rspamd_log_counters (rspamd_logger_t *logger);
+
/* Typical functions */
/* Logging in postfix style */