comparison src/core/ngx_log.c @ 105:00bee6e7b485

nginx-0.0.1-2003-06-15-22:32:13 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Jun 2003 18:32:13 +0000
parents 6dfda4cf5200
children 9f9de4deda7e
comparison
equal deleted inserted replaced
104:7db96f59bc29 105:00bee6e7b485
217 217
218 218
219 ngx_log_t *ngx_log_init_errlog() 219 ngx_log_t *ngx_log_init_errlog()
220 { 220 {
221 #if (WIN32) 221 #if (WIN32)
222
222 ngx_log.fd = GetStdHandle(STD_ERROR_HANDLE); 223 ngx_log.fd = GetStdHandle(STD_ERROR_HANDLE);
223 224
224 if (ngx_log.fd == NGX_INVALID_FILE) { 225 if (ngx_log.fd == NGX_INVALID_FILE) {
225 /* TODO: where we can log error ? */ 226 /* TODO: where we can log error ? */
226 return NULL; 227 return NULL;
229 /* there are no associated standard handles */ 230 /* there are no associated standard handles */
230 /* TODO: where we can log possible errors ? */ 231 /* TODO: where we can log possible errors ? */
231 } 232 }
232 233
233 #else 234 #else
235
234 ngx_log.fd = STDERR_FILENO; 236 ngx_log.fd = STDERR_FILENO;
237
235 #endif 238 #endif
236 239
237 ngx_log.log_level = NGX_LOG_INFO; 240 ngx_log.log_level = NGX_LOG_INFO;
238 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; 241 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG;
239 242