The access log formatting variables follow the Apache variables:
|
|
% B |
Result Content Length |
% D |
Time taken to complete the request in microseconds (since 3.0.16) |
% H |
Remote IP ADDR |
% {XXX} I |
Request Header xxx |
% {XXX} o |
Response Header xxx |
% {XXX} c |
Cookie value xxx |
% N |
Request attribute |
% R |
Request URL |
% S |
Status Code |
% {XXX} t |
Request date with optional time format string. |
% T |
Time taken to complete the request in seconds |
% U |
Remote User |
% U |
Request URI |
% V |
Name 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.
|
|
% |
Day of week (short) |
% |
Day of week (verbose) |
% B |
Day of month (short) |
% B |
Day of month (verbose) |
% C |
Java locale date |
% D |
Day of month (two-digit) |
% H |
24-hour (two-digit) |
% I |
12-hour (two-digit) |
% J |
Day of year (three-digit) |
% M |
Month (two-digit) |
% M |
Minutes |
% P |
AM/PM |
% S |
Seconds |
% S |
Milliseconds |
% W |
Week in Year (three-digit) |
% W |
Day of week (one-digit) |
% Y |
Year (two-digit) |
% Y |
Year (four-digit) |
% Z |
Time zone (name) |
% Z |
Time 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>