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, const char *syslog_app_name, char **error);
66
+
int zbx_open_log(const zbx_config_log_t *log_file_cfg, int level, const char *syslog_app_name,
67
+
const char *event_source, char **error);
67
68
void zbx_log_impl(int level, const char *fmt, va_list args);
68
69
void zbx_close_log(void);
69
70
70
71
char *zbx_strerror_from_system(zbx_syserror_t error);
71
72
72
73
#ifdef _WINDOWS
73
74
char *zbx_strerror_from_module(zbx_syserror_t error, const wchar_t *module);
74
75
#endif
75
76
76
77
int zbx_redirect_stdio(const char *filename);