Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6185:a420cb1c170b | 6186:db138b3b645e |
---|---|
253 { | 253 { |
254 (void) ngx_write_fd(ngx_stderr, text, ngx_strlen(text)); | 254 (void) ngx_write_fd(ngx_stderr, text, ngx_strlen(text)); |
255 } | 255 } |
256 | 256 |
257 | 257 |
258 static ngx_inline void | |
259 ngx_write_stdout(char *text) | |
260 { | |
261 (void) ngx_write_fd(ngx_stdout, text, ngx_strlen(text)); | |
262 } | |
263 | |
264 | |
258 extern ngx_module_t ngx_errlog_module; | 265 extern ngx_module_t ngx_errlog_module; |
259 extern ngx_uint_t ngx_use_stderr; | 266 extern ngx_uint_t ngx_use_stderr; |
260 | 267 |
261 | 268 |
262 #endif /* _NGX_LOG_H_INCLUDED_ */ | 269 #endif /* _NGX_LOG_H_INCLUDED_ */ |