comparison src/core/ngx_log.h @ 5260:e088695737c3

Core: consolidated log-related code. The stderr redirection code is moved to ngx_log_redirect_stderr(). The opening of the default log code is moved to ngx_log_open_default().
author Vladimir Homutov <vl@nginx.com>
date Fri, 28 Jun 2013 17:24:54 +0400
parents 7ecaa9e4bf1b
children 777202558122
comparison
equal deleted inserted replaced
5259:0c699e1d1071 5260:e088695737c3
223 223
224 ngx_log_t *ngx_log_init(u_char *prefix); 224 ngx_log_t *ngx_log_init(u_char *prefix);
225 void ngx_cdecl ngx_log_abort(ngx_err_t err, const char *fmt, ...); 225 void ngx_cdecl ngx_log_abort(ngx_err_t err, const char *fmt, ...);
226 void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...); 226 void ngx_cdecl ngx_log_stderr(ngx_err_t err, const char *fmt, ...);
227 u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err); 227 u_char *ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err);
228 ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle);
229 ngx_int_t ngx_log_redirect_stderr(ngx_cycle_t *cycle);
228 char *ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head); 230 char *ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head);
229 231
230 232
231 /* 233 /*
232 * ngx_write_stderr() cannot be implemented as macro, since 234 * ngx_write_stderr() cannot be implemented as macro, since