Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Borovikov <git-no-replydmitry@zabbix.com>2010-02-18 18:11:23 +0300
committerDmitry Borovikov <git-no-replydmitry@zabbix.com>2010-02-18 18:11:23 +0300
commit83a1ec15c62ff6b13b990827c1f175a6aaa740a1 (patch)
treef522e4fe34ce566542e81aa12d00b3bf73af881b /include/log.h
parent413f01a948d124c10d75461af602e2b65f99d289 (diff)
- [ZBX-3] fixed logging into syslog, Zabbix log levels are properly linked to syslog levels (Dmitry)
[ merging revisions 10259-10260 of svn://svn.zabbix.com/branches/1.8 ]
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/log.h b/include/log.h
index 80ec50d1721..6fccd8d36fa 100644
--- a/include/log.h
+++ b/include/log.h
@@ -20,13 +20,13 @@
#ifndef ZABBIX_LOG_H
#define ZABBIX_LOG_H
-#define LOG_LEVEL_EMPTY 0
+#define LOG_LEVEL_EMPTY 0 /* printing nothing (if not LOG_LEVEL_INFORMATION set) */
#define LOG_LEVEL_CRIT 1
#define LOG_LEVEL_ERR 2
#define LOG_LEVEL_WARNING 3
#define LOG_LEVEL_DEBUG 4
-#define LOG_LEVEL_INFORMATION 127
+#define LOG_LEVEL_INFORMATION 127 /* printing in any case no matter what level set */
#define LOG_TYPE_UNDEFINED 0
#define LOG_TYPE_SYSLOG 1
@@ -43,7 +43,7 @@ typedef enum {
extern int CONFIG_LOG_FILE_SIZE;
-/* Type - 0 (syslog), 1 - file */
+/* Type - 1 (syslog), 2 - file */
int zabbix_open_log(int type,int level, const char *filename);
#ifdef HAVE___VA_ARGS__