Source
xxxxxxxxxx
68
68
while (0)
69
69
#else
70
70
# define zabbix_log __zbx_zabbix_log
71
71
#endif
72
72
73
73
int zabbix_open_log(const zbx_config_log_t *log_file_cfg, int level, char **error);
74
74
void __zbx_zabbix_log(int level, const char *fmt, ...) __zbx_attr_format_printf(2, 3);
75
75
void zabbix_close_log(void);
76
76
77
77
#ifndef _WINDOWS
78
-
int zabbix_increase_log_level(void);
79
-
int zabbix_decrease_log_level(void);
78
+
void zabbix_increase_log_level(void);
79
+
void zabbix_decrease_log_level(void);
80
+
void zabbix_report_log_level_change(void);
80
81
const char *zabbix_get_log_level_string(void);
81
82
83
+
82
84
typedef struct
83
85
{
84
86
int level;
85
87
const char *name;
86
88
}
87
89
zbx_log_component_t;
88
90
89
91
void zbx_set_log_component(const char *name, zbx_log_component_t *component);
90
92
void zbx_change_component_log_level(zbx_log_component_t *component, int direction);
91
93