From b32d1da1d760f2e193b293af6dde9da272a85e8d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Sep 2009 19:25:39 -0700 Subject: add output record separator option (:ORS) This allows overriding the default of "\n". Behavior remains similar to IO#puts, the :ORS (output record separator) is appended iff the format doesn't already end with that string. --- lib/clogger/pure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/clogger/pure.rb') diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb index 57e727b..108d036 100644 --- a/lib/clogger/pure.rb +++ b/lib/clogger/pure.rb @@ -9,7 +9,7 @@ class Clogger @app = app @logger = opts[:logger] (@logger.sync = true) rescue nil - @fmt_ops = compile_format(opts[:format] || Format::Common) + @fmt_ops = compile_format(opts[:format] || Format::Common, opts) @wrap_body = need_wrap_body?(@fmt_ops) @reentrant = nil @body_bytes_sent = 0 -- cgit v1.2.3-24-ge0c7