diff options
author | Vladimir Homutov <vl@nginx.com> | 2015-06-16 15:47:40 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2015-06-16 15:47:40 +0300 |
commit | 42c32b733b95e5e9ce9a627cdc19096c1c6f8e63 (patch) | |
tree | e7d25e10cb60a293f1e1a80d731f6bd8783a5180 /src/core/ngx_log.h | |
parent | 4404c3fd6d10ce6e393113aabb32cfe7818ff8ac (diff) | |
download | nginx-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.h | 7 |
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; |