From 11ff177a9fe3129cd1c8b23e1850bfbc3e2c6ae1 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Thu, 20 Jun 2013 20:47:39 +0400 Subject: 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. --- src/os/unix/ngx_process_cycle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/os/unix') diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index f937fb661..8ada10652 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -714,6 +714,7 @@ ngx_master_process_exit(ngx_cycle_t *cycle) ngx_exit_log = *ngx_cycle->log; ngx_exit_log.file = &ngx_exit_log_file; + ngx_exit_log.next = NULL; ngx_exit_cycle.log = &ngx_exit_log; ngx_exit_cycle.files = ngx_cycle->files; @@ -1066,6 +1067,7 @@ ngx_worker_process_exit(ngx_cycle_t *cycle) ngx_exit_log = *ngx_cycle->log; ngx_exit_log.file = &ngx_exit_log_file; + ngx_exit_log.next = NULL; ngx_exit_cycle.log = &ngx_exit_log; ngx_exit_cycle.files = ngx_cycle->files; -- cgit