diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-24 16:48:50 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-24 16:48:50 -0800 |
commit | 6720cdda4b890ac42806a8fe290f96449a150c6a (patch) | |
tree | 39007738365e5a9ef3636202a9e9cbcd2b8ac7b0 /lib/clogger/format.rb | |
parent | 54cf500266b35beecb9c30b8252e72af9fafbc3e (diff) | |
download | clogger-6720cdda4b890ac42806a8fe290f96449a150c6a.tar.gz |
They're not needed and a waste of code.
Diffstat (limited to 'lib/clogger/format.rb')
-rw-r--r-- | lib/clogger/format.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/clogger/format.rb b/lib/clogger/format.rb index 9e4f59f..54fe766 100644 --- a/lib/clogger/format.rb +++ b/lib/clogger/format.rb @@ -7,19 +7,19 @@ class Clogger # 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'.freeze + '"$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"|.freeze + 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').freeze + 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}'.freeze + '"$request" $status $response_length $request_time{4}' end end |