diff options
author | Igors Homjakovs <git-no-reply@zabbix.com> | 2014-08-04 15:31:11 +0400 |
---|---|---|
committer | Igors Homjakovs <git-no-reply@zabbix.com> | 2014-08-04 15:31:11 +0400 |
commit | dbdc5f9183252a40776f41ba10c43d6b61e40e43 (patch) | |
tree | 09377a886c4932360911ba3af4afd10a3add6e98 /include/log.h | |
parent | 6f9aaa3c14a481c804adf2f431980333c89030fe (diff) |
...G...PS. [ZBXNEXT-101] removed unused function zabbix_set_log_level() and fixed code formatting
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/include/log.h b/include/log.h index 04a4b5e0809..938eb74d639 100644 --- a/include/log.h +++ b/include/log.h @@ -47,34 +47,31 @@ zbx_err_codes_t; extern int CONFIG_LOG_FILE_SIZE; -/* Type - 1 (syslog), 2 - file */ -int zabbix_open_log(int type,int level, const char *filename); - #ifdef HAVE___VA_ARGS__ # define zabbix_log(level, fmt, ...) __zbx_zabbix_log(level, ZBX_CONST_STRING(fmt), ##__VA_ARGS__) #else # define zabbix_log __zbx_zabbix_log #endif /* HAVE___VA_ARGS__ */ -void zabbix_errlog(zbx_err_codes_t err, ...); -void __zbx_zabbix_log(int level, const char *fmt, ...); -void zabbix_close_log(); -void zabbix_set_log_level(int level); -int set_debug_level_up(); -int set_debug_level_down(); -const char *get_debug_level_string(); -int zabbix_check_log_level(int level); - -char *zbx_strerror(int errnum); -char *strerror_from_system(unsigned long error); +/* Type - 1 (syslog), 2 - file */ +int zabbix_open_log(int type,int level, const char *filename); +void zabbix_errlog(zbx_err_codes_t err, ...); +void __zbx_zabbix_log(int level, const char *fmt, ...); +void zabbix_close_log(); +int set_debug_level_up(); +int set_debug_level_down(); +const char *get_debug_level_string(); +int zabbix_check_log_level(int level); +char *zbx_strerror(int errnum); +char *strerror_from_system(unsigned long error); #ifdef _WINDOWS -char *strerror_from_module(unsigned long error, LPCTSTR module); +char *strerror_from_module(unsigned long error, LPCTSTR module); #endif #if defined(_WINDOWS) # define redirect_std(filename) #else - void redirect_std(const char *filename); + void redirect_std(const char *filename); #endif #endif |