Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 234:cd71b95716b4
nginx-0.0.1-2004-01-20-23:40:08 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 20 Jan 2004 20:40:08 +0000 |
parents | 05592fd7a436 |
children | b6793bc5034b |
comparison
equal
deleted
inserted
replaced
233:4eaafcd57be7 | 234:cd71b95716b4 |
---|---|
203 NGX_HTTP_LOC_CONF_OFFSET, | 203 NGX_HTTP_LOC_CONF_OFFSET, |
204 0, | 204 0, |
205 NULL }, | 205 NULL }, |
206 | 206 |
207 { ngx_string("error_log"), | 207 { ngx_string("error_log"), |
208 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 208 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, |
209 ngx_set_error_log, | 209 ngx_set_error_log, |
210 NGX_HTTP_LOC_CONF_OFFSET, | 210 NGX_HTTP_LOC_CONF_OFFSET, |
211 0, | 211 0, |
212 NULL }, | 212 NULL }, |
213 | 213 |
1393 | 1393 |
1394 static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | 1394 static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) |
1395 { | 1395 { |
1396 ngx_http_core_loc_conf_t *lcf = conf; | 1396 ngx_http_core_loc_conf_t *lcf = conf; |
1397 | 1397 |
1398 #if 0 | 1398 if (!(lcf->err_log = ngx_log_create_errlog(cf->cycle, cf->args))) { |
1399 ngx_str_t *value; | 1399 return NGX_CONF_ERROR; |
1400 | 1400 } |
1401 value = cf->args->elts; | 1401 |
1402 #endif | 1402 return ngx_set_error_log_levels(cf, lcf->err_log); |
1403 | |
1404 ngx_test_null(lcf->err_log, | |
1405 ngx_log_create_errlog(cf->cycle, cf->args), | |
1406 NGX_CONF_ERROR); | |
1407 | |
1408 return NGX_CONF_OK; | |
1409 } | 1403 } |
1410 | 1404 |
1411 | 1405 |
1412 static char *ngx_http_lowat_check(ngx_conf_t *cf, void *post, void *data) | 1406 static char *ngx_http_lowat_check(ngx_conf_t *cf, void *post, void *data) |
1413 { | 1407 { |