From dd3e13eef01e9f04ac447eaa3a1a76575944fc28 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Fri, 28 Jun 2013 17:24:54 +0400 Subject: 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(). --- src/core/ngx_log.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/ngx_log.h') diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index 82e1e2451..878fb0a27 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -225,6 +225,8 @@ ngx_log_t *ngx_log_init(u_char *prefix); 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); +ngx_int_t ngx_log_open_default(ngx_cycle_t *cycle); +ngx_int_t ngx_log_redirect_stderr(ngx_cycle_t *cycle); char *ngx_log_set_log(ngx_conf_t *cf, ngx_log_t **head); -- cgit