about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-08 17:20:30 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-08 17:20:30 -0800
commit616314a2bbc13095b1da9306916c0d414634e555 (patch)
tree75a03f6cb65d928cce0c8ebf2cd1dad7f37d6677
parent2dd3e22782090dc347429e306569f687fa794d06 (diff)
-rw-r--r--README12
1 files changed, 7 insertions, 5 deletions
diff --git a/README b/README
index 8e9bd66..3c6cf34 100644
--- a/README
+++ b/README
@@ -20,9 +20,9 @@ is customizable so you can specify exactly which fields to log.
     " (double quote)
     all bytes in the range of \x00-\x1F
 
-* multi-instance capable and reentrant.  You can use Clogger in a
-  multi-threaded server, and even multiple Cloggers logging to
-  different locations and different formats in the same process.
+* multi-instance capable and (optionally) reentrant.  You can use
+  Clogger in a multi-threaded server, and even multiple Cloggers logging
+  to different locations and different formats in the same process.
 
 == SYNOPSIS
 
@@ -31,7 +31,8 @@ Clogger may be loaded as Rack middleware in your config.ru:
   require "clogger"
   use Clogger,
       :format => Clogger::Format::Combined,
-      :logger => ::File.open("/path/to/log", "ab")
+      :logger => ::File.open("/path/to/log", "ab"),
+      :reentrant => true
   run YourApplication.new
 
 If you're using Rails 2.3.x or later, in your config/environment.rb
@@ -39,7 +40,8 @@ somewhere inside the "Rails::Initializer.run do |config|" block:
 
   config.middleware.use 'Clogger',
       :format => Clogger::Format::Combined,
-      :logger => ::File.open("/path/to/log", "ab")
+      :logger => ::File.open("/path/to/log", "ab"),
+      :reentrant => false
 
 == VARIABLES