Mercurial > hg > nginx
comparison src/http/ngx_http_log_handler.c @ 393:5659d773cfa8
nginx-0.0.7-2004-07-15-20:35:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 Jul 2004 16:35:51 +0000 |
parents | 2e3cbc1bbe3c |
children | 8ac40cae79f0 |
comparison
equal
deleted
inserted
replaced
392:d1222d46b3f9 | 393:5659d773cfa8 |
---|---|
654 log->file = ngx_conf_open_file(cf->cycle, &http_access_log); | 654 log->file = ngx_conf_open_file(cf->cycle, &http_access_log); |
655 if (log->file == NULL) { | 655 if (log->file == NULL) { |
656 return NGX_CONF_ERROR; | 656 return NGX_CONF_ERROR; |
657 } | 657 } |
658 | 658 |
659 lmcf = ngx_http_conf_module_main_conf(cf, ngx_http_log_module); | 659 lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module); |
660 fmt = lmcf->formats.elts; | 660 fmt = lmcf->formats.elts; |
661 /* the default "combined" format */ | 661 /* the default "combined" format */ |
662 log->ops = fmt[0].ops; | 662 log->ops = fmt[0].ops; |
663 } | 663 } |
664 } | 664 } |
684 return NGX_CONF_ERROR; | 684 return NGX_CONF_ERROR; |
685 } | 685 } |
686 } | 686 } |
687 | 687 |
688 value = cf->args->elts; | 688 value = cf->args->elts; |
689 lmcf = ngx_http_conf_module_main_conf(cf, ngx_http_log_module); | 689 lmcf = ngx_http_conf_get_module_main_conf(cf, ngx_http_log_module); |
690 | 690 |
691 if (!(log = ngx_push_array(llcf->logs))) { | 691 if (!(log = ngx_push_array(llcf->logs))) { |
692 return NGX_CONF_ERROR; | 692 return NGX_CONF_ERROR; |
693 } | 693 } |
694 | 694 |