Source
56
56
#endif
57
57
58
58
typedef struct
59
59
{
60
60
char *log_file_name;
61
61
char *log_type_str;
62
62
int log_type;
63
63
int log_file_size;
64
64
} zbx_config_log_t;
65
65
66
-
int zbx_open_log(const zbx_config_log_t *log_file_cfg, int level, char **error);
66
+
int zabbix_open_log(const zbx_config_log_t *log_file_cfg, int level, char **error);
67
67
void zbx_log_impl(int level, const char *fmt, va_list args);
68
-
void zbx_close_log(void);
68
+
void zabbix_close_log(void);
69
69
70
-
char *zbx_strerror_from_system(zbx_syserror_t error);
70
+
char *strerror_from_system(zbx_syserror_t error);
71
71
72
72
#ifdef _WINDOWS
73
-
char *zbx_strerror_from_module(zbx_syserror_t error, const wchar_t *module);
73
+
char *strerror_from_module(zbx_syserror_t error, const wchar_t *module);
74
74
#endif
75
75
76
76
int zbx_redirect_stdio(const char *filename);
77
77
78
78
void zbx_handle_log(void);
79
79
80
80
int zbx_get_log_type(const char *logtype);
81
81
int zbx_validate_log_parameters(ZBX_TASK_EX *task, const zbx_config_log_t *log_file_cfg);
82
82
83
83
void zbx_strlog_alloc(int level, char **out, size_t *out_alloc, size_t *out_offset, const char *format,