Access-log

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
Line 1: Line 1:
 
[[Category:Configuration]]
 
[[Category:Configuration]]
  
The <access-log> tag controls the information Resin prints with each request.  It can appear in any of the [[Server Configuration|<server>]], [[Host Configuration|<host>]], or <[[web-app]] environments.
+
The <access-log> directive controls the information Resin prints with each request.  It can appear in any of the [[Server Configuration|<server>]], [[Host Configuration|<host>]], or <[[web-app]] environments.
  
  
Line 8: Line 8:
 
             rollover-period="1W"/>
 
             rollover-period="1W"/>
  
== configuration tags ==
+
== configuration directives ==
  
 
{|
 
{|
Line 18: Line 18:
 
|}
 
|}
  
==access-log format tags==
+
==access-log format directives==
  
 
{|
 
{|

Revision as of 20:20, 21 February 2006


The <access-log> directive controls the information Resin prints with each request. It can appear in any of the <server>, <host>, or <web-app environments.


<access-log path="logs/access.log"
            format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
            rollover-period="1W"/>

configuration directives

code meaning default
auto-flush flush after each log entry false
any rollover-log entry

access-log format directives

code meaning
%b content length
%h remote IP address
%\{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 date with optional time format
%T time of request in seconds
%D time of request in microseconds (3.0.15)
%u remote user
%U request URL
Personal tools