1 # -*- encoding: binary -*-
5 # predefined log formats in wide use
7 # common log format used by Apache:
8 # https://httpd.apache.org/docs/2.4/logs.html
9 Common = "$remote_addr - $remote_user [$time_local] " \
10 '"$request" $status $response_length'
12 # combined log format used by Apache:
13 # https://httpd.apache.org/docs/2.4/logs.html
14 Combined = %Q|#{Common} "$http_referer" "$http_user_agent"|
16 # combined log format used by nginx:
17 # http://wiki.nginx.org/NginxHttpLogModule
18 NginxCombined = Combined.gsub(/response_length/, 'body_bytes_sent')
20 # log format used by Rack 1.0
21 Rack_1_0 = "$ip - $remote_user [$time_local{%d/%b/%Y %H:%M:%S}] " \
22 '"$request" $status $response_length $request_time{4}'