* %a - 遠端IP地址
* %A - 本地IP地址
* %b - 發送的字節數,不包括HTTP頭,如果為0,使用"-"
* %B - 發送的字節數,不包括HTTP頭
* %h - 遠端主機名(如果resolveHost=false,遠端的IP地址)
* %H - 請求協議
* %l - 從identd返回的遠端邏輯用戶名(總是返回 '-')
* %m - 請求的方法(GET,POST,等)
* %p - 收到請求的本地端口號
* %q - 查詢字符串(如果存在,以 '?'開始)
* %r - 請求的第一行,包含了請求的方法和URI
* %s - 響應的狀態碼
* %S - 用戶的session ID
* %t - 日志和時間,使用通常的Log格式
* %u - 認證以后的遠端用戶(如果存在的話,否則為'-')
* %U - 請求的URI路徑
* %v - 本地服務器的名稱
* %D - 處理請求的時間,以毫秒為單位
* %T - 處理請求的時間,以秒為單位
* %A - 本地IP地址
* %b - 發送的字節數,不包括HTTP頭,如果為0,使用"-"
* %B - 發送的字節數,不包括HTTP頭
* %h - 遠端主機名(如果resolveHost=false,遠端的IP地址)
* %H - 請求協議
* %l - 從identd返回的遠端邏輯用戶名(總是返回 '-')
* %m - 請求的方法(GET,POST,等)
* %p - 收到請求的本地端口號
* %q - 查詢字符串(如果存在,以 '?'開始)
* %r - 請求的第一行,包含了請求的方法和URI
* %s - 響應的狀態碼
* %S - 用戶的session ID
* %t - 日志和時間,使用通常的Log格式
* %u - 認證以后的遠端用戶(如果存在的話,否則為'-')
* %U - 請求的URI路徑
* %v - 本地服務器的名稱
* %D - 處理請求的時間,以毫秒為單位
* %T - 處理請求的時間,以秒為單位
- %a - Remote IP address
- %A - Local IP address
- %b - Bytes sent, excluding HTTP headers, or '-' if zero
- %B - Bytes sent, excluding HTTP headers
- %h - Remote host name (or IP address if
resolveHosts
is false) - %H - Request protocol
- %l - Remote logical username from identd (always returns '-')
- %m - Request method (GET, POST, etc.)
- %p - Local port on which this request was received
- %q - Query string (prepended with a '?' if it exists)
- %r - First line of the request (method and request URI)
- %s - HTTP status code of the response
- %S - User session ID
- %t - Date and time, in Common Log Format
- %u - Remote user that was authenticated (if any), else '-'
- %U - Requested URL path
- %v - Local server name
- %D - Time taken to process the request, in millis
- %T - Time taken to process the request, in seconds
- %I - current request thread name (can compare later with stacktraces)
%{xxx}i
for incoming request headers%{xxx}o
for outgoing response headers%{xxx}c
for a specific request cookie%{xxx}r
xxx is an attribute in the ServletRequest%{xxx}s
xxx is an attribute in the HttpSession