diff src/core/ngx_log.h @ 6186:db138b3b645e

Core: added support for writing to stdout.
author Vladimir Homutov <vl@nginx.com>
date Tue, 16 Jun 2015 15:47:40 +0300
parents e034af368274
children 4b420f9c4c5d
line wrap: on
line diff
--- 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;