补丁下载的网址: http://devel.squid-cache.org/customlog/

可以生成Apache combined日志补丁
patch -p0 < customlog-2.5.patch
./configure --prefix=/usr/local/squid --enable-delay-pools --enable-useragent-log --enable-referer-log --enable-default-err-language=Simplify_Chinese --enable-x-accelerator-vary --enable-kill-parent-hack --enable-err-languages="Simplif
y_Chinese English" --with-pthreads --with-aio --enable-cache-digests --with-large-files

编译结束后, 在  squid.conf 中添加: 

logformat combined %>a - %un [%{%d/%b/%Y:%H:%M:%S +0800}tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-agent}>h"
cache_access_log /var/squid/logs/access.log combined

一个支持 combined 日志模式的 Squid 即告完成。 

注意, 这里用了 +0800 ,绕过了使用 tl 的 %z 或者 %Z 的问题,用 z% ,将显示为 25%z ,可能是 patch 有问题。 

Squid custom log format

Basic syntax: %...field where ... is an optional field width. On numeric fields the output will be 0 padded if the field width starts with a 0. If the field width starts with a - then the output will be aligned right within the field.
Field names

Field name syntax keys:
{} modifier or argument. Also used to specify header names
> request (client)
< reply (server)
a address
A address name
h all headers
i ident
p port
r request line (no query)
t time
u user
l local address/port (where request was accepted)

Client source IP address
Client FQDN
Client source port
%Server or peer IP address
%Server or peer port number
%Server IP address or peer name
Local IP address where the request was accepted
Local port where the request was accepted
Local port name where the request was accepted
Date of request, seconds since epoch
Date of request, strftime format (localtime)
Date of request, strftime format (gmt)
Date of request, sub-second component
Time to serve the request, in milliseconds
Request header
Named request header field element (list headers)
%{header:separator element}>h
Named request header field element, using "separator" as field separator (it can be any non-alphanumeric single character)
All request header
%{header}Request headers, as for <..h above
Authenticated user name or dash
Authenticated user realm or dash
Authenticated user scheme or dash
Ident user name
HTTP status code (200, 404, 407, etc)
HTTP status text (Not found, etc)
Squid status code (TCP_HIT, TCP_MISS etc)
Squid error code (ERR_DENIED, ERR_...)
Squid hierarchy code (FIRST_UP_PARENT, etc)
MIME type of the request
Request method
Request URL, without the query string
Request query string, including ?
Request protocol (i.e. HTTP/1.1)
Peer selection status (DIRECT, PARENT, CD_PARENT_HIT, etc. including the TIMEDOUT_ variant)
Size of request line
Size of request headers, including request line
Size of request headers, excluding request line
Size of request body, raw received bytes
Size of request body, excluding transfer encoding
Total size of request
%Size of reply status line
%Size of reply headers, including status line
%Size of reply headers, excluding status line
%Size of reply body, raw transmitted bytes
%Size of reply body, excluding transfer encoding
%Total size of reply
A literal %


I agree that after profitable on one machine after which half in} on other random slot machines, all or most of my winnings are taken again by the on line casino as if I cannot win anymore. I believe that utilizing a player's card leads to the on line casino operations room technician controlling your general expertise, and as stated by one contributor, one loses in lengthy run|the long term}. No, free slots are not rigged, on-line slots for real money aren’t too. You can not pick an excellent slot casino.edu.kg proper at your first time except the God of Luck backs you up. However, luck has a uncommon presence on this recreation of likelihood - the on line casino slot.



购买了iacces for iPad