From 616314a2bbc13095b1da9306916c0d414634e555 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 8 Feb 2010 17:20:30 -0800 Subject: README: update examples for :reentrant --- README | 12 +++++++----- 1 file 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 -- cgit v1.2.3-24-ge0c7