Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 5254:7ecaa9e4bf1b
Core: support several "error_log" directives.
When several "error_log" directives are specified in the same configuration
block, logs are written to all files with a matching log level.
All logs are stored in the singly-linked list that is sorted by log level in
the descending order.
Specific debug levels (NGX_LOG_DEBUG_HTTP,EVENT, etc.) are not supported
if several "error_log" directives are specified. In this case all logs
will use debug level that has largest absolute value.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 20 Jun 2013 20:47:39 +0400 |
parents | 06fbbde04098 |
children | 3a72b1805c52 |
comparison
equal
deleted
inserted
replaced
5253:a82f305487c2 | 5254:7ecaa9e4bf1b |
---|---|
583 | 583 |
584 | 584 |
585 #define ngx_http_set_connection_log(c, l) \ | 585 #define ngx_http_set_connection_log(c, l) \ |
586 \ | 586 \ |
587 c->log->file = l->file; \ | 587 c->log->file = l->file; \ |
588 c->log->next = l->next; \ | |
588 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ | 589 if (!(c->log->log_level & NGX_LOG_DEBUG_CONNECTION)) { \ |
589 c->log->log_level = l->log_level; \ | 590 c->log->log_level = l->log_level; \ |
590 } | 591 } |
591 | 592 |
592 | 593 |