Mercurial > hg > nginx
comparison src/core/ngx_log.h @ 210:00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 14 Dec 2003 20:10:27 +0000 |
parents | 0b67be7d4489 |
children | f536f91e8e99 |
comparison
equal
deleted
inserted
replaced
209:e1c815be05ae | 210:00cafae0bdf1 |
---|---|
188 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt, arg1) | 188 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt, arg1) |
189 #else | 189 #else |
190 #define ngx_log_debug1(level, log, err, fmt, arg1) | 190 #define ngx_log_debug1(level, log, err, fmt, arg1) |
191 #endif | 191 #endif |
192 | 192 |
193 #if (NGX_DEBUG) | |
194 #define ngx_log_debug2(level, log, err, fmt, arg1, arg2) \ | |
195 if (log->log_level & level) \ | |
196 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt, arg1, arg2) | |
197 #else | |
198 #define ngx_log_debug2(level, log, err, fmt, arg1, arg2) | |
199 #endif | |
200 | |
201 #if (NGX_DEBUG) | |
202 #define ngx_log_debug6(level, log, err, fmt, \ | |
203 arg1, arg2, arg3, arg4, arg5, arg6) \ | |
204 if (log->log_level & level) \ | |
205 ngx_log_error_core(NGX_LOG_DEBUG, log, err, fmt, \ | |
206 arg1, arg2, arg3, arg4, arg5, arg6) | |
207 #else | |
208 #define ngx_log_debug6(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5, arg6) | |
209 #endif | |
210 | |
193 /*********************************/ | 211 /*********************************/ |
194 | 212 |
195 #else /* NO VARIADIC MACROS */ | 213 #else /* NO VARIADIC MACROS */ |
196 | 214 |
197 #if (NGX_DEBUG) | 215 #if (NGX_DEBUG) |
207 if (log->log_level & level) \ | 225 if (log->log_level & level) \ |
208 ngx_log_debug_core(log, err, fmt, arg1) | 226 ngx_log_debug_core(log, err, fmt, arg1) |
209 #else | 227 #else |
210 #define ngx_log_debug1(level, log, err, fmt, arg1) | 228 #define ngx_log_debug1(level, log, err, fmt, arg1) |
211 #endif | 229 #endif |
230 | |
231 #if (NGX_DEBUG) | |
232 #define ngx_log_debug2(level, log, err, fmt, arg1, arg2) \ | |
233 if (log->log_level & level) \ | |
234 ngx_log_debug_core(log, err, fmt, arg1, arg2) | |
235 #else | |
236 #define ngx_log_debug2(level, log, err, fmt, arg1, arg2) | |
237 #endif | |
238 | |
239 #if (NGX_DEBUG) | |
240 #define ngx_log_debug6(level, log, err, fmt, \ | |
241 arg1, arg2, arg3, arg4, arg5, arg6) \ | |
242 if (log->log_level & level) \ | |
243 ngx_log_debug_core(log, err, fmt, arg1, arg2, arg3, arg4, arg5, arg6) | |
244 #else | |
245 #define ngx_log_debug6(level, log, err, fmt, arg1, arg2, arg3, arg4, arg5, arg6) | |
246 #endif | |
247 | |
212 #endif | 248 #endif |
213 | 249 |
214 | 250 |
215 /*********************************/ | 251 /*********************************/ |
216 | 252 |