| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/debug/php-5.6.40/sapi/fpm/fpm/ |
Upload File : |
/* $Id: zlog.h,v 1.7 2008/05/22 21:08:32 anight Exp $ */
/* (c) 2004-2007 Andrei Nigmatulin */
#ifndef ZLOG_H
#define ZLOG_H 1
#define zlog(flags,...) zlog_ex(__func__, __LINE__, flags, __VA_ARGS__)
struct timeval;
void zlog_set_external_logger(void (*logger)(int, char *, size_t));
int zlog_set_fd(int new_fd);
int zlog_set_level(int new_value);
const char *zlog_get_level_name(int log_level);
void zlog_set_launched(void);
size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
void zlog_ex(const char *function, int line, int flags, const char *fmt, ...)
__attribute__ ((format(printf,4,5)));
#ifdef HAVE_SYSLOG_H
extern const int syslog_priorities[];
#endif
enum {
ZLOG_DEBUG = 1,
ZLOG_NOTICE = 2,
ZLOG_WARNING = 3,
ZLOG_ERROR = 4,
ZLOG_ALERT = 5,
};
#define ZLOG_LEVEL_MASK 7
#define ZLOG_HAVE_ERRNO 0x100
#define ZLOG_SYSERROR (ZLOG_ERROR | ZLOG_HAVE_ERRNO)
#ifdef HAVE_SYSLOG_H
#define ZLOG_SYSLOG -2
#endif
#endif