diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-02 18:40:02 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-02 18:40:02 -0700 |
commit | 5fd5bb6aa884ec8f2c62a5edaae6b93ec8275f2e (patch) | |
tree | f026fb533fb134cce146a25c797983d7d34fd761 | |
parent | 3bc7000a34c8e1788a5951381c7007f617233da2 (diff) | |
download | clogger-5fd5bb6aa884ec8f2c62a5edaae6b93ec8275f2e.tar.gz |
* link to Clogger::Format when talking about predefined formats * use upper-case for escape chars since that's what we use * clarify $request_time{PRECISION} range
-rw-r--r-- | README.txt | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,13 +14,14 @@ is customizable so you can specify exactly which fields to log. * pre-defines Apache Common Log Format, Apache Combined Log Format and Rack::CommonLogger (as distributed by Rack 1.0) formats. + See Clogger::Format for the predefined formats. * Untrusted values are escaped (all HTTP headers, request URI components) to make life easier for HTTP log parsers. The following bytes are escaped: ' (single quote) " (double quote) - all bytes in the range of \x00-\x1f + all bytes in the range of \x00-\x1F == SYNOPSIS @@ -58,8 +59,8 @@ somewhere inside the "Rails::Initializer.run do |config|" block: ($request_method $request_uri $http_version) * $request_time, $request_time{PRECISION} - time taken for request (including response body iteration). PRECISION defaults to 3 - (milliseconds) if not specified but may be specified 0(seconds) to - 6(microseconds). + (milliseconds) if not specified but may be specified anywhere from + 0(seconds) to 6(microseconds). * $time_local, $time_local{FORMAT} - current local time, FORMAT defaults to "%d/%b/%Y:%H:%M:%S %z" but accepts any strftime(3)-compatible format * $time_utc, $time_utc{FORMAT} - like $time_local, except with UTC |