diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-16 15:39:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-16 15:39:09 +0400 |
commit | dc48e79c1507e1235a271b4a3763e9701651d2ab (patch) | |
tree | f4289c12007f953ade8cf096e1c4ec4eda2bacbc /src/util.h | |
parent | 53b1f011a3b34a40b08882e34083db820a815bab (diff) | |
download | rspamd-dc48e79c1507e1235a271b4a3763e9701651d2ab.tar.gz rspamd-dc48e79c1507e1235a271b4a3763e9701651d2ab.zip |
* Use own logging system to use static logging buffer instead of dynamically allocated one
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index c6ca2c25e..4bea3d08e 100644 --- a/src/util.h +++ b/src/util.h @@ -2,9 +2,11 @@ #define RSPAMD_UTIL_H #include "config.h" -#include "main.h" +#include "mem_pool.h" struct config_file; +struct rspamd_main; +struct workq; /* Create socket and bind or connect it to specified address and port */ int make_tcp_socket (struct in_addr *, u_short, gboolean is_server); @@ -47,9 +49,11 @@ int pidfile_close(struct pidfh *pfh); int pidfile_remove(struct pidfh *pfh); #endif +void rspamd_set_logger (GLogFunc func, struct config_file *cfg); int open_log (struct config_file *cfg); void close_log (struct config_file *cfg); int reopen_log (struct config_file *cfg); +void rspamd_log_function (GLogLevelFlags log_level, const char *fmt, ...); 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); |