Mercurial > hg > nginx-quic
comparison src/core/ngx_log.c @ 379:73688d5d7fc3
nginx-0.0.7-2004-07-06-20:12:16 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 06 Jul 2004 16:12:16 +0000 |
parents | 1308b98496a2 |
children | 3c56e834be46 |
comparison
equal
deleted
inserted
replaced
378:b7d3625c9336 | 379:73688d5d7fc3 |
---|---|
45 "stderr", "emerg", "alert", "crit", "error", | 45 "stderr", "emerg", "alert", "crit", "error", |
46 "warn", "notice", "info", "debug" | 46 "warn", "notice", "info", "debug" |
47 }; | 47 }; |
48 | 48 |
49 static const char *debug_levels[] = { | 49 static const char *debug_levels[] = { |
50 "debug_core", "debug_alloc", "debug_event", "debug_http" | 50 "debug_core", "debug_alloc", "debug_mutex", "debug_event", "debug_http" |
51 }; | 51 }; |
52 | 52 |
53 | 53 |
54 #if (HAVE_VARIADIC_MACROS) | 54 #if (HAVE_VARIADIC_MACROS) |
55 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, | 55 void ngx_log_error_core(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, |
277 #endif | 277 #endif |
278 | 278 |
279 ngx_log.file = &ngx_stderr; | 279 ngx_log.file = &ngx_stderr; |
280 ngx_log.log_level = NGX_LOG_INFO; | 280 ngx_log.log_level = NGX_LOG_INFO; |
281 | 281 |
282 #if 0 | |
283 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; | |
284 #endif | |
285 | |
286 return &ngx_log; | 282 return &ngx_log; |
287 } | 283 } |
288 | 284 |
289 | 285 |
290 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) | 286 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) |
300 name = NULL; | 296 name = NULL; |
301 } | 297 } |
302 | 298 |
303 ngx_test_null(log, ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)), NULL); | 299 ngx_test_null(log, ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)), NULL); |
304 ngx_test_null(log->file, ngx_conf_open_file(cycle, name), NULL); | 300 ngx_test_null(log->file, ngx_conf_open_file(cycle, name), NULL); |
305 | |
306 #if 0 | |
307 /* STUB */ log->log_level = NGX_LOG_DEBUG | NGX_LOG_DEBUG_CORE | NGX_LOG_DEBUG_ALLOC | NGX_LOG_DEBUG_EVENT | NGX_LOG_DEBUG_HTTP; | |
308 #endif | |
309 | 301 |
310 return log; | 302 return log; |
311 } | 303 } |
312 | 304 |
313 | 305 |