Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_log_handler.c @ 33:b2e039840718
nginx-0.0.1-2002-12-19-20:49:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 19 Dec 2002 17:49:51 +0000 |
parents | d45effe5854c |
children | 4222c496acb3 |
comparison
equal
deleted
inserted
replaced
32:d45effe5854c | 33:b2e039840718 |
---|---|
20 char *line, *p; | 20 char *line, *p; |
21 ngx_tm_t tm; | 21 ngx_tm_t tm; |
22 | 22 |
23 ngx_log_debug(r->connection->log, "log handler"); | 23 ngx_log_debug(r->connection->log, "log handler"); |
24 | 24 |
25 /* %a, 20:%c, 22:%d, 3:%s, 20:%b, 5*" ", "2/1: "\r\n" */ | 25 /* 10:%con, 22:%date, 2:%"%r", 3:%status, 20:%bytes, 5*" ", 2/1: "\r\n" */ |
26 #if (WIN32) | 26 #if (WIN32) |
27 len = 2 + 20 + 22 + 3 + 20 + 5 + + 2; | 27 len = 10 + 22 + 2 + 3 + 20 + 5 + 2; |
28 #else | 28 #else |
29 len = 2 + 20 + 22 + 3 + 20 + 5 + + 1; | 29 len = 10 + 22 + 2 + 3 + 20 + 5 + 1; |
30 #endif | 30 #endif |
31 | 31 |
32 len += r->connection->addr_text.len; | 32 len += r->connection->addr_text.len; |
33 len += r->request_line.len; | 33 len += r->request_line.len; |
34 | 34 |
65 | 65 |
66 p += ngx_snprintf(p, 4, "%d", r->headers_out.status); | 66 p += ngx_snprintf(p, 4, "%d", r->headers_out.status); |
67 | 67 |
68 *p++ = ' '; | 68 *p++ = ' '; |
69 | 69 |
70 p += ngx_snprintf(p, 21, QD_FMT, r->connection->sent); | 70 p += ngx_snprintf(p, 21, OFF_FMT, r->connection->sent); |
71 | 71 |
72 #if (WIN32) | 72 #if (WIN32) |
73 *p++ = CR; *p++ = LF; | 73 *p++ = CR; *p++ = LF; |
74 #else | 74 #else |
75 *p++ = LF; | 75 *p++ = LF; |