comparison src/http/ngx_http_log_handler.c @ 42:41ccba1aba45 NGINX_0_1_21

nginx 0.1.21 *) Bugfix: the ngx_http_stub_status_module showed incorrect statistics if "rtsig" method was used or if several worker process ran on SMP. *) Bugfix: nginx could not be built by the icc compiler on Linux or if the zlib-1.2.x library was building from sources. *) Bugfix: nginx could not be built on NetBSD 2.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 22 Feb 2005 00:00:00 +0300
parents 2879cd3a40cb
children 9f3205d496a0
comparison
equal deleted inserted replaced
41:4d8e7a81b3a0 42:41ccba1aba45
133 "\"%{Referer}i\" \"%{User-Agent}i\""); 133 "\"%{Referer}i\" \"%{User-Agent}i\"");
134 134
135 135
136 ngx_http_log_op_name_t ngx_http_log_fmt_ops[] = { 136 ngx_http_log_op_name_t ngx_http_log_fmt_ops[] = {
137 { ngx_string("addr"), INET_ADDRSTRLEN - 1, NULL, NULL, ngx_http_log_addr }, 137 { ngx_string("addr"), INET_ADDRSTRLEN - 1, NULL, NULL, ngx_http_log_addr },
138 { ngx_string("conn"), NGX_INT32_LEN, NULL, NULL, ngx_http_log_connection }, 138 { ngx_string("conn"), NGX_ATOMIC_T_LEN, NULL, NULL,
139 ngx_http_log_connection },
139 { ngx_string("pipe"), 1, NULL, NULL, ngx_http_log_pipe }, 140 { ngx_string("pipe"), 1, NULL, NULL, ngx_http_log_pipe },
140 { ngx_string("time"), sizeof("28/Sep/1970:12:00:00 +0600") - 1, 141 { ngx_string("time"), sizeof("28/Sep/1970:12:00:00 +0600") - 1,
141 NULL, NULL, ngx_http_log_time }, 142 NULL, NULL, ngx_http_log_time },
142 { ngx_string("msec"), NGX_TIME_T_LEN + 4, NULL, NULL, ngx_http_log_msec }, 143 { ngx_string("msec"), NGX_TIME_T_LEN + 4, NULL, NULL, ngx_http_log_msec },
143 { ngx_string("status"), 3, NULL, NULL, ngx_http_log_status }, 144 { ngx_string("status"), 3, NULL, NULL, ngx_http_log_status },
144 { ngx_string("length"), NGX_OFF_T_LEN, NULL, NULL, ngx_http_log_length }, 145 { ngx_string("length"), NGX_OFF_T_LEN, NULL, NULL, ngx_http_log_length },
145 { ngx_string("apache_length"), NGX_OFF_T_LEN, 146 { ngx_string("apache_length"), NGX_OFF_T_LEN,
146 NULL, NULL, ngx_http_log_apache_length }, 147 NULL, NULL, ngx_http_log_apache_length },
147 { ngx_string("request_length"), NGX_SIZE_T_LEN, 148 { ngx_string("request_length"), NGX_SIZE_T_LEN,
148 NULL, NULL, ngx_http_log_request_length }, 149 NULL, NULL, ngx_http_log_request_length },
149 150
150 { ngx_string("request"), 0, NULL, 151 { ngx_string("request"), 0, NULL,
151 ngx_http_log_request_getlen, 152 ngx_http_log_request_getlen,
152 ngx_http_log_request }, 153 ngx_http_log_request },
153 154
154 { ngx_string("i"), 0, ngx_http_log_header_in_compile, 155 { ngx_string("i"), 0, ngx_http_log_header_in_compile,
155 ngx_http_log_header_in_getlen, 156 ngx_http_log_header_in_getlen,
156 ngx_http_log_header_in }, 157 ngx_http_log_header_in },
157 158