diff options
author | Vladimir Homutov <vl@nginx.com> | 2013-06-20 20:47:39 +0400 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2013-06-20 20:47:39 +0400 |
commit | 11ff177a9fe3129cd1c8b23e1850bfbc3e2c6ae1 (patch) | |
tree | 2289fc8b7b9f72564a23019ebb3438757ee74c74 /src/core/ngx_log.h | |
parent | 02cc52554f7ef326bb92df4ecced524e5d01ee19 (diff) | |
download | nginx-11ff177a9fe3129cd1c8b23e1850bfbc3e2c6ae1.tar.gz nginx-11ff177a9fe3129cd1c8b23e1850bfbc3e2c6ae1.zip |
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.
Diffstat (limited to 'src/core/ngx_log.h')
-rw-r--r-- | src/core/ngx_log.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index 323364786..82e1e2451 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -61,6 +61,8 @@ struct ngx_log_s { */ char *action; + + ngx_log_t *next; }; @@ -220,11 +222,10 @@ void ngx_cdecl ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, /*********************************/ ngx_log_t *ngx_log_init(u_char *prefix); -ngx_log_t *ngx_log_create(ngx_cycle_t *cycle, ngx_str_t *name); -char *ngx_log_set_levels(ngx_conf_t *cf, ngx_log_t *log); void ngx_cdecl ngx_log_abort(ngx_err_t err, const char *fmt, ...); void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...); u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err); +char *ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head); /* |