Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 2749:ccaf43725ff6
change ngx_log_create_errlog() interface
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 24 Apr 2009 14:27:36 +0000 |
parents | 756f73ca1e39 |
children | 09cab3f8d92e |
comparison
equal
deleted
inserted
replaced
2748:2477b28eaccb | 2749:ccaf43725ff6 |
---|---|
4099 static char * | 4099 static char * |
4100 ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) | 4100 ngx_http_core_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) |
4101 { | 4101 { |
4102 ngx_http_core_loc_conf_t *lcf = conf; | 4102 ngx_http_core_loc_conf_t *lcf = conf; |
4103 | 4103 |
4104 lcf->err_log = ngx_log_create_errlog(cf->cycle, cf->args); | 4104 ngx_str_t *value; |
4105 | |
4106 value = cf->args->elts; | |
4107 | |
4108 lcf->err_log = ngx_log_create_errlog(cf->cycle, &value[1]); | |
4105 if (lcf->err_log == NULL) { | 4109 if (lcf->err_log == NULL) { |
4106 return NGX_CONF_ERROR; | 4110 return NGX_CONF_ERROR; |
4107 } | 4111 } |
4108 | 4112 |
4109 return ngx_set_error_log_levels(cf, lcf->err_log); | 4113 return ngx_set_error_log_levels(cf, lcf->err_log); |