aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-10-26 06:53:05 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-10-26 06:53:05 +0300
commitc52d0879cc03345a6c41c724db6a3de59cca7d07 (patch)
tree5803356d258d737fffd8c8816d719c46fffd53b2 /util.h
parent9a7ba3e09a318d9f1ef66b41377b4f66029915db (diff)
downloadrspamd-c52d0879cc03345a6c41c724db6a3de59cca7d07.tar.gz
rspamd-c52d0879cc03345a6c41c724db6a3de59cca7d07.zip
* Add main logging functions (log to file, syslog and console)
* Handle log reopening
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index e88521281..1791f4635 100644
--- a/util.h
+++ b/util.h
@@ -52,4 +52,9 @@ int pidfile_close(struct pidfh *pfh);
int pidfile_remove(struct pidfh *pfh);
#endif
+int open_log (struct config_file *cfg);
+int reopen_log (struct config_file *cfg);
+void syslog_log_function (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer arg);
+void file_log_function (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer arg);
+
#endif