Sha256: eb7cb09ba48ec2a244b2afb67b2f1695f02ebd06bc995eb687e945a17104d78e
Contents?: true
Size: 803 Bytes
Versions: 12
Compression:
Stored size: 803 Bytes
Contents
# -*- encoding: binary -*- class Clogger # predefined log formats in wide use module Format # common log format used by Apache: # http://httpd.apache.org/docs/2.2/logs.html Common = "$remote_addr - $remote_user [$time_local] " \ '"$request" $status $response_length' # combined log format used by Apache: # http://httpd.apache.org/docs/2.2/logs.html Combined = %Q|#{Common} "$http_referer" "$http_user_agent"| # combined log format used by nginx: # http://wiki.nginx.org/NginxHttpLogModule NginxCombined = Combined.gsub(/response_length/, 'body_bytes_sent') # log format used by Rack 1.0 Rack_1_0 = "$ip - $remote_user [$time_local{%d/%b/%Y %H:%M:%S}] " \ '"$request" $status $response_length $request_time{4}' end end
Version data entries
12 entries across 12 versions & 1 rubygems