Access-log

From Resin 3.0

Revision as of 20:20, 21 February 2006 by Sam (Talk | contribs)
Jump to: navigation, search


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