comparison src/core/ngx_log.c @ 109:a9bc21d63fe4

nginx-0.0.1-2003-07-02-18:41:17 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 02 Jul 2003 14:41:17 +0000
parents 9f9de4deda7e
children d7f606e25b99
comparison
equal deleted inserted replaced
108:adc093f880c8 109:a9bc21d63fe4
241 ngx_log.file = &ngx_stderr; 241 ngx_log.file = &ngx_stderr;
242 ngx_log.log_level = NGX_LOG_INFO; 242 ngx_log.log_level = NGX_LOG_INFO;
243 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; 243 /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG;
244 244
245 return &ngx_log; 245 return &ngx_log;
246 }
247
248
249 ngx_log_t *ngx_log_create_errlog(ngx_cycle_t *cycle)
250 {
251 ngx_log_t *log;
252
253 ngx_test_null(log, ngx_pcalloc(cycle->pool, sizeof(ngx_log_t)), NULL);
254 ngx_test_null(log->file, ngx_push_array(&cycle->open_files), NULL);
255
256 return log;
246 } 257 }
247 258
248 259
249 char *ngx_log_set_errlog(ngx_conf_t *cf, ngx_command_t *cmd, ngx_log_t *log) 260 char *ngx_log_set_errlog(ngx_conf_t *cf, ngx_command_t *cmd, ngx_log_t *log)
250 { 261 {