Mercurial > hg > nginx
comparison src/core/ngx_log.c @ 449:3b1e8c9df9ad
nginx-0.1.0-2004-10-04-00:02:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Oct 2004 20:02:06 +0000 |
parents | 241dc8092a33 |
children | 295d97d70c69 |
comparison
equal
deleted
inserted
replaced
448:241dc8092a33 | 449:3b1e8c9df9ad |
---|---|
226 | 226 |
227 ngx_log_t *ngx_log_init_stderr() | 227 ngx_log_t *ngx_log_init_stderr() |
228 { | 228 { |
229 #if (WIN32) | 229 #if (WIN32) |
230 | 230 |
231 ngx_stderr.fd = GetStdHandle(STD_ERROR_HANDLE); | 231 ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); |
232 | 232 ngx_stderr.fd = ngx_stderr_fileno; |
233 if (ngx_stderr.fd == NGX_INVALID_FILE) { | 233 |
234 if (ngx_stderr_fileno == NGX_INVALID_FILE) { | |
235 | |
234 /* TODO: where can we log error ? */ | 236 /* TODO: where can we log error ? */ |
237 | |
235 return NULL; | 238 return NULL; |
236 | 239 |
237 } else if (ngx_stderr.fd == NULL) { | 240 } else if (ngx_stderr_fileno == NULL) { |
238 | 241 |
239 /* there are no associated standard handles */ | 242 /* there are no associated standard handles */ |
240 | 243 |
241 /* TODO: where can we can log possible errors ? */ | 244 /* TODO: where can we can log possible errors ? */ |
242 | 245 |
253 ngx_log.log_level = NGX_LOG_ERR; | 256 ngx_log.log_level = NGX_LOG_ERR; |
254 | 257 |
255 return &ngx_log; | 258 return &ngx_log; |
256 } | 259 } |
257 | 260 |
261 | |
262 #if 0 | |
258 | 263 |
259 ngx_int_t ngx_log_init_error_log() | 264 ngx_int_t ngx_log_init_error_log() |
260 { | 265 { |
261 ngx_fd_t fd; | 266 ngx_fd_t fd; |
262 | 267 |
296 | 301 |
297 #endif | 302 #endif |
298 | 303 |
299 return NGX_OK; | 304 return NGX_OK; |
300 } | 305 } |
306 | |
307 #endif | |
301 | 308 |
302 | 309 |
303 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) | 310 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle, ngx_array_t *args) |
304 { | 311 { |
305 ngx_log_t *log; | 312 ngx_log_t *log; |