From 42c32b733b95e5e9ce9a627cdc19096c1c6f8e63 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 16 Jun 2015 15:47:40 +0300 Subject: Core: added support for writing to stdout. --- src/core/ngx_log.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core') diff --git a/src/core/ngx_log.h b/src/core/ngx_log.h index b9b10a169..618d3ad62 100644 --- a/src/core/ngx_log.h +++ b/src/core/ngx_log.h @@ -255,6 +255,13 @@ ngx_write_stderr(char *text) } +static ngx_inline void +ngx_write_stdout(char *text) +{ + (void) ngx_write_fd(ngx_stdout, text, ngx_strlen(text)); +} + + extern ngx_module_t ngx_errlog_module; extern ngx_uint_t ngx_use_stderr; -- cgit