aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2013-06-28 17:24:54 +0400
committerVladimir Homutov <vl@nginx.com>2013-06-28 17:24:54 +0400
commitdd3e13eef01e9f04ac447eaa3a1a76575944fc28 (patch)
treeb8652fc39f002250d6032d486e2cde27cf40a0da /src/core/ngx_log.h
parentf41c91511d5435b81f795954d3eb00d38f6acf56 (diff)
downloadnginx-dd3e13eef01e9f04ac447eaa3a1a76575944fc28.tar.gz
nginx-dd3e13eef01e9f04ac447eaa3a1a76575944fc28.zip
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().
Diffstat (limited to 'src/core/ngx_log.h')
-rw-r--r--src/core/ngx_log.h2
1 files changed, 2 insertions, 0 deletions
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);