9#define zlog(flags,...) zlog_ex(__func__, __LINE__, flags, __VA_ARGS__)
10#define zlog_msg(flags, prefix, msg) zlog_msg_ex(__func__, __LINE__, flags, prefix, msg)
37extern const int syslog_priorities[];
49#define ZLOG_LEVEL_MASK 7
51#define ZLOG_HAVE_ERRNO 0x100
53#define ZLOG_SYSERROR (ZLOG_ERROR | ZLOG_HAVE_ERRNO)
103 struct
zlog_stream *stream, const
char *suffix, const
char *final_suffix);
104#define zlog_stream_prefix(stream) \
105 zlog_stream_prefix_ex(stream, __func__, __LINE__)
116#define ZLOG_DEFAULT_LIMIT 1024
118#define ZLOG_MIN_LIMIT 512
120#define ZLOG_DEFAULT_BUFFERING 1
printf(string $format, mixed ... $values)
unsigned int prefix_buffer
struct zlog_stream_buffer buf
size_t msg_final_suffix_len
function(EX_VAR(opline->result.var))
zlog_bool zlog_stream_finish(struct zlog_stream *stream)
ssize_t zlog_stream_str(struct zlog_stream *stream, const char *str, size_t str_len)
void zlog_msg_ex(const char *function, int line, int flags, const char *prefix, const char *msg)
zlog_bool zlog_stream_close(struct zlog_stream *stream)
zlog_bool zlog_stream_set_msg_suffix(struct zlog_stream *stream, const char *suffix, const char *final_suffix)
void zlog_stream_destroy(struct zlog_stream *stream)
ssize_t zlog_stream_vformat(struct zlog_stream *stream, const char *fmt, va_list args)
void zlog_set_launched(void)
void zlog_stream_init_ex(struct zlog_stream *stream, int flags, int fd)
int zlog_set_limit(int new_value)
void zlog_stream_init(struct zlog_stream *stream, int flags)
void zlog_stream_set_child_pid(struct zlog_stream *stream, int child_pid)
int zlog_set_level(int new_value)
void zlog_stream_set_msg_quoting(struct zlog_stream *stream, zlog_bool quote)
ssize_t zlog_stream_prefix_ex(struct zlog_stream *stream, const char *function, int line)
ssize_t zlog_stream_format(struct zlog_stream *stream, const char *fmt,...) __attribute__((format(printf
void zlog_stream_set_decorating(struct zlog_stream *stream, zlog_bool decorate)
void zlog_stream_set_is_stdout(struct zlog_stream *stream, zlog_bool is_stdout)
const char * zlog_get_level_name(int log_level)
void zlog_set_external_logger(void(*logger)(int, char *, size_t))
zlog_bool zlog_stream_set_msg_prefix(struct zlog_stream *stream, const char *fmt,...) __attribute__((format(printf
void vzlog(const char *function, int line, int flags, const char *fmt, va_list args)
void zlog_ex(const char *function, int line, int flags, const char *fmt,...) __attribute__((format(printf
void zlog_stream_set_wrapping(struct zlog_stream *stream, zlog_bool wrap)
size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len)
int zlog_set_fd(int new_fd, zlog_bool is_stderr)
int zlog_set_buffering(zlog_bool buffering)