Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_log_module.xml @ 769:d71e56d56ada
Documented variables relocations between http log and core modules.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 19 Nov 2012 14:53:54 +0000 |
parents | 56fa3cab4ceb |
children | 47ad88faaa3f |
comparison
equal
deleted
inserted
replaced
768:f63b7fa3bf17 | 769:d71e56d56ada |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_log_module" | 10 <module name="Module ngx_http_log_module" |
11 link="/en/docs/http/ngx_http_log_module.html" | 11 link="/en/docs/http/ngx_http_log_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="3"> | 13 rev="4"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_log_module</literal> module writes request logs | 18 The <literal>ngx_http_log_module</literal> module writes request logs |
134 <para> | 134 <para> |
135 The log format can contain common variables, and variables that | 135 The log format can contain common variables, and variables that |
136 exist only at the time of a log write: | 136 exist only at the time of a log write: |
137 <list type="tag"> | 137 <list type="tag"> |
138 | 138 |
139 <tag-name><var>$body_bytes_sent</var></tag-name> | |
140 <tag-desc> | |
141 the number of bytes sent to a client not counting the response header; | |
142 this variable is compatible with the “<literal>%B</literal>” parameter of the | |
143 <literal>mod_log_config</literal> | |
144 Apache module | |
145 </tag-desc> | |
146 | |
147 <tag-name><var>$bytes_sent</var></tag-name> | 139 <tag-name><var>$bytes_sent</var></tag-name> |
148 <tag-desc> | 140 <tag-desc> |
149 the number of bytes sent to a client | 141 the number of bytes sent to a client |
142 <note> | |
143 Since versions 1.3.8 and 1.2.5 there is a common variable with the | |
144 <link doc="ngx_http_core_module.xml" id="var_bytes_sent">same name</link>. | |
145 </note> | |
150 </tag-desc> | 146 </tag-desc> |
151 | 147 |
152 <tag-name><var>$connection</var></tag-name> | 148 <tag-name><var>$connection</var></tag-name> |
153 <tag-desc> | 149 <tag-desc> |
154 connection serial number | 150 connection serial number |
151 <note> | |
152 Since versions 1.3.8 and 1.2.5 there is a common variable with the | |
153 <link doc="ngx_http_core_module.xml" id="var_connection">same name</link>. | |
154 </note> | |
155 </tag-desc> | 155 </tag-desc> |
156 | 156 |
157 <tag-name><var>$connection_requests</var></tag-name> | 157 <tag-name><var>$connection_requests</var></tag-name> |
158 <tag-desc> | 158 <tag-desc> |
159 the current number of requests made through a connection | 159 the current number of requests made through a connection (1.1.18) |
160 <note> | |
161 Since versions 1.3.8 and 1.2.5 there is a common variable with the | |
162 <link doc="ngx_http_core_module.xml" id="var_connection_requests">same | |
163 name</link>. | |
164 </note> | |
160 </tag-desc> | 165 </tag-desc> |
161 | 166 |
162 <tag-name><var>$msec</var></tag-name> | 167 <tag-name><var>$msec</var></tag-name> |
163 <tag-desc> | 168 <tag-desc> |
164 time in seconds with a milliseconds resolution at the time of log write | 169 time in seconds with a milliseconds resolution at the time of log write |
183 </tag-desc> | 188 </tag-desc> |
184 | 189 |
185 <tag-name><var>$status</var></tag-name> | 190 <tag-name><var>$status</var></tag-name> |
186 <tag-desc> | 191 <tag-desc> |
187 response status | 192 response status |
193 <note> | |
194 Since versions 1.3.2 and 1.2.2 there is a common variable with the | |
195 <link doc="ngx_http_core_module.xml" id="var_status">same name</link>. | |
196 </note> | |
188 </tag-desc> | 197 </tag-desc> |
189 | 198 |
190 <tag-name><var>$time_iso8601</var></tag-name> | 199 <tag-name><var>$time_iso8601</var></tag-name> |
191 <tag-desc> | 200 <tag-desc> |
192 local time in the ISO 8601 standard format | 201 local time in the ISO 8601 standard format |