From e413f4ee9cd298baab701df31ab4c1cb91c7c4b6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 22 Dec 2009 01:32:18 +0300 Subject: * 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 --- src/cfg_file.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cfg_file.h') diff --git a/src/cfg_file.h b/src/cfg_file.h index 16b59c45f..5b6dd9511 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -227,8 +227,9 @@ struct config_file { int log_facility; /**< log facility in case of syslog */ int log_level; /**< log level trigger */ char *log_file; /**< path to logfile in case of file logging */ - int log_fd; /**< log descriptor in case of file logging */ - FILE *logf; + gboolean log_buffered; /**< whether logging is buffered */ + uint32_t log_buf_size; /**< length of log buffer */ + char *debug_ip_map; /**< turn on debugging for specified ip addresses */ gboolean log_urls; /**< whether we should log URLs */ size_t max_statfile_size; /**< maximum size for statfile */ -- cgit v1.2.3