aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_log.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2015-06-16 15:47:40 +0300
committerVladimir Homutov <vl@nginx.com>2015-06-16 15:47:40 +0300
commit42c32b733b95e5e9ce9a627cdc19096c1c6f8e63 (patch)
treee7d25e10cb60a293f1e1a80d731f6bd8783a5180 /src/core/ngx_log.h
parent4404c3fd6d10ce6e393113aabb32cfe7818ff8ac (diff)
downloadnginx-42c32b733b95e5e9ce9a627cdc19096c1c6f8e63.tar.gz
nginx-42c32b733b95e5e9ce9a627cdc19096c1c6f8e63.zip
Core: added support for writing to stdout.
Diffstat (limited to 'src/core/ngx_log.h')
-rw-r--r--src/core/ngx_log.h7
1 files changed, 7 insertions, 0 deletions
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;