aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-22 01:32:18 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-22 01:32:18 +0300
commite413f4ee9cd298baab701df31ab4c1cb91c7c4b6 (patch)
tree46858bef680c8a09b6d1d58a5ca7e3a8cec4e62d /src/main.h
parenta079dac866ac4e166a8d6e40f978af74e8398583 (diff)
downloadrspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.tar.gz
rspamd-e413f4ee9cd298baab701df31ab4c1cb91c7c4b6.zip
* Introduce new logging system:
- independent and customizeable buffering - line buffering - errors handling support - custom (ip based) debug - append function name automaticaly (based on __FUNCTION__) - add some logic to logs system
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.h b/src/main.h
index 8aea5a661..ed7d2c80c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -18,6 +18,7 @@
#include "hash.h"
#include "events.h"
#include "util.h"
+#include "logger.h"
/* Default values */
#define FIXED_CONFIG_FILE ETC_PREFIX "/rspamd.conf"
@@ -28,12 +29,6 @@
/* 60 seconds for worker's IO */
#define WORKER_IO_TIMEOUT 60
-/* Logging in postfix style */
-#define msg_err(args...) rspamd_log_function(G_LOG_LEVEL_CRITICAL, ##args)
-#define msg_warn(args...) rspamd_log_function(G_LOG_LEVEL_WARNING, ##args)
-#define msg_info(args...) rspamd_log_function(G_LOG_LEVEL_INFO, ##args)
-#define msg_debug(args...) rspamd_log_function(G_LOG_LEVEL_DEBUG, ##args)
-
#ifdef CRLF
#undef CRLF
#undef CR