comparison src/core/ngx_log.h @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents f0b350454894
children 46833bd150cb
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
53 #define MAX_ERROR_STR 2048 53 #define MAX_ERROR_STR 2048
54 54
55 55
56 /*********************************/ 56 /*********************************/
57 57
58 #if (HAVE_GCC_VARIADIC_MACROS) 58 #if (NGX_HAVE_GCC_VARIADIC_MACROS)
59 59
60 #define HAVE_VARIADIC_MACROS 1 60 #define NGX_HAVE_VARIADIC_MACROS 1
61 61
62 #define ngx_log_error(level, log, args...) \ 62 #define ngx_log_error(level, log, args...) \
63 if (log->log_level >= level) ngx_log_error_core(level, log, args) 63 if (log->log_level >= level) ngx_log_error_core(level, log, args)
64 64
65 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, 65 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
66 const char *fmt, ...); 66 const char *fmt, ...);
67 67
68 /*********************************/ 68 /*********************************/
69 69
70 #elif (HAVE_C99_VARIADIC_MACROS) 70 #elif (NGX_HAVE_C99_VARIADIC_MACROS)
71 71
72 #define HAVE_VARIADIC_MACROS 1 72 #define NGX_HAVE_VARIADIC_MACROS 1
73 73
74 #define ngx_log_error(level, log, ...) \ 74 #define ngx_log_error(level, log, ...) \
75 if (log->log_level >= level) ngx_log_error_core(level, log, __VA_ARGS__) 75 if (log->log_level >= level) ngx_log_error_core(level, log, __VA_ARGS__)
76 76
77 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, 77 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
79 79
80 /*********************************/ 80 /*********************************/
81 81
82 #else /* NO VARIADIC MACROS */ 82 #else /* NO VARIADIC MACROS */
83 83
84 #define HAVE_VARIADIC_MACROS 0 84 #define NGX_HAVE_VARIADIC_MACROS 0
85 85
86 void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, 86 void ngx_log_error(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
87 const char *fmt, ...); 87 const char *fmt, ...);
88 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, 88 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err,
89 const char *fmt, va_list args); 89 const char *fmt, va_list args);
96 96
97 /*********************************/ 97 /*********************************/
98 98
99 #if (NGX_DEBUG) 99 #if (NGX_DEBUG)
100 100
101 #if (HAVE_VARIADIC_MACROS) 101 #if (NGX_HAVE_VARIADIC_MACROS)
102 102
103 #define ngx_log_debug0(level, log, err, fmt) \ 103 #define ngx_log_debug0(level, log, err, fmt) \
104 if (log->log_level & level) \ 104 if (log->log_level & level) \
105 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt) 105 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt)
106 106