From 86699fa42105c48e7d4c3cf6e16cca4417bf0a06 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Jun 2010 07:46:25 +0000 Subject: README: document CLOGGER_PURE environment variable There may also be some MRI users uncomfortable running C extensions. --- GNUmakefile | 4 ++-- README | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 4addaf2..f98c1cc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -36,10 +36,10 @@ $(test_unit): $(RUBY) $@ test-ext: - $(MAKE) test-unit + CLOGGER_PURE=0 $(MAKE) test-unit test-pure: - CLOGGER_PURE=t $(MAKE) test-unit + CLOGGER_PURE=1 $(MAKE) test-unit test: test-ext test-pure diff --git a/README b/README index 0d15292..c2f5155 100644 --- a/README +++ b/README @@ -24,10 +24,15 @@ is customizable so you can specify exactly which fields to log. \Clogger in a multi-threaded server, and even multiple Cloggers logging to different locations and different formats in the same process. +* Pure Ruby version for non-MRI versions of Ruby (or via CLOGGER_PURE=1 + in the environment). The optional C extension is loaded by default + and supported under MRI 1.8.7, 1.9.1, and 1.9.2. + == SYNOPSIS \Clogger may be loaded as Rack middleware in your config.ru: + # ENV['CLOGGER_PURE'] = '1' # uncomment to disable C extension require "clogger" use Clogger, :format => Clogger::Format::Combined, -- cgit v1.2.3-24-ge0c7