Module: Clogger::Format
- Defined in:
- lib/clogger/format.rb,
ext/clogger_ext/clogger.c
Overview
predefined log formats in wide use
Constant Summary collapse
- Common =
common log format used by Apache: httpd.apache.org/docs/2.4/logs.html
"$remote_addr - $remote_user [$time_local] " \ '"$request" $status $response_length'
- Combined =
combined log format used by Apache: httpd.apache.org/docs/2.4/logs.html
%Q|#{Common} "$http_referer" "$http_user_agent"|
- NginxCombined =
combined log format used by nginx: wiki.nginx.org/NginxHttpLogModule
Combined.gsub(/response_length/, 'body_bytes_sent')
- Rack_1_0 =
log format used by Rack 1.0
"$ip - $remote_user [$time_local{%d/%b/%Y %H:%M:%S}] " \ '"$request" $status $response_length $request_time{4}'