resin access log 格式

来源:互联网 发布:淘宝转微信链接 编辑:程序博客网 时间:2024/05/21 17:03

The access log formatting variables follow the Apache variables:

  %bresult content length%Dtime taken to complete the request in microseconds (since 3.0.16)%hremote IP addr%{xxx}irequest header xxx%{xxx}oresponse header xxx%{xxx}ccookie value xxx%nrequest attribute%rrequest URL%sstatus code%{xxx}trequest date with optional time format string.%Ttime taken to complete the request in seconds%uremote user%Urequest URI%vname of the virtual host serving the request

The default format is:

default access log format
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

 

Timestamp format string

The timestamp for log tags is a format string which can contain percent codes which are substituted with time and date values.

  %aday of week (short)%Aday of week (verbose)%bday of month (short)%Bday of month (verbose)%cJava locale date%dday of month (two-digit)%H24-hour (two-digit)%I12-hour (two-digit)%jday of year (three-digit)%mmonth (two-digit)%Mminutes%pam/pm%Sseconds%smilliseconds%Wweek in year (three-digit)%wday of week (one-digit)%yyear (two-digit)%Yyear (four-digit)%Ztime zone (name)%ztime zone (+/-0800)

Example: typical timestamp for the log tag
<resin xmlns="http://caucho.com/ns/resin">
<log-handler name='' path='stderr:' timestamp="[%H:%M:%S.%s]"/>
...
</resin>
原创粉丝点击