Source
xxxxxxxxxx
void zbx_strlog_alloc(int level, char **out, size_t *out_alloc, size_t *out_offset, const char *format,
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/* seconds */
void __zbx_update_env(double time_now);
typedef struct
{
char *log_file_name;
char *log_type_str;
int log_type;
int log_file_size;
} zbx_config_log_t;
int zbx_open_log(const zbx_config_log_t *log_file_cfg, int level, const char *syslog_app_name,
const char *event_source, char **error);
void zbx_log_impl(int level, const char *fmt, va_list args);