From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.199.13 with SMTP id w13cs79175rvf; Mon, 19 Oct 2009 04:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.150.44.14 as permitted sender) client-ip=10.150.44.14; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.150.44.14 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.150.44.14]) by 10.150.44.14 with SMTP id r14mr5769707ybr.8.1255950861799 (num_hops = 1); Mon, 19 Oct 2009 04:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:dkim-signature :domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; bh=m+LSykCvLl/1Y2QEhJot9Dk5Bg1xbFFIZpjwd+37bPQ=; b=b5sul/LzI/szgmtAT+HYwdCv1hSE5YjbEGcPNNOM44044y/JKKpMD74MXibo0YfHD1 DkPLvcV1cEc9hWJvDjZca8RqdPwtGeO18vqPotiMAFc5q1hjPTFhvRQjeMMlV1QwQhsv FmGPgNW1VAd4jIxGa1YHSUIaSSY649nWGTssk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :dkim-signature:domainkey-signature:mime-version:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=ohQ8Eusma/oH1Mr+mZCX7RwoFqIvFpgguIVcaRzYywd6v2acGZzEGbcvUQOLpQuvyc gSiB2ylykN3U8l8zHxMApSthbxEVC35oJws/4/8ovx70EMdwsPjN2KmzpYsixPAHcgmr kGl3zGuyN7nZUDtyVcInZ8jva4FD6rYsijylE= Received: by 10.150.44.14 with SMTP id r14mr552939ybr.8.1255950861744; Mon, 19 Oct 2009 04:14:21 -0700 (PDT) Received: by 10.177.5.4 with SMTP id h4gr1702yqi.0; Mon, 19 Oct 2009 04:14:18 -0700 (PDT) X-Sender: m.fellinger@gmail.com X-Apparently-To: rack-devel@googlegroups.com Received: by 10.220.70.75 with SMTP id c11mr1405837vcj.18.1255950856561; Mon, 19 Oct 2009 04:14:16 -0700 (PDT) Received: by 10.220.70.75 with SMTP id c11mr1405836vcj.18.1255950856534; Mon, 19 Oct 2009 04:14:16 -0700 (PDT) Return-Path: Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.211.182]) by gmr-mx.google.com with ESMTP id 18si364104ywh.9.2009.10.19.04.14.15; Mon, 19 Oct 2009 04:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of m.fellinger@gmail.com designates 209.85.211.182 as permitted sender) client-ip=209.85.211.182; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of m.fellinger@gmail.com designates 209.85.211.182 as permitted sender) smtp.mail=m.fellinger@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-yw0-f182.google.com with SMTP id 12so957111ywh.21 for ; Mon, 19 Oct 2009 04:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=j2pUuyt8TPmTFir1Uh9YNR6ydEhJOu6pb2nukOAsjI4=; b=MeqLPSaTxYewhArmkS+b87fLjob754dBPZT+VgByKWBpvZyaDAAdIjmj1TGPO9ULLr w7okwrnFFoN80+oGUCZNNJs2iUYbNtWWsi6CDaCGo28be0N7z9D07tdAPPdHJOdhQ/Y9 GQboqB8I+aBNVTdBzLH20TA05eyWL+1fr3KSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=iUjd4NE3zJ0RvxrzsAOBhSkj+Z00sWsLNuNBtBumaZyj8nZWCiDr2LU3lLnisOUzti kRDRFGgCT9MSIYKB2+z5cdzBP9is6BlL5453f+QxSVi7/9cDCIuy9oXDZwC/+GmQFQd6 cgFkziKm7f85Ox8rETsYlP3VOABA+LyqZxQcM= MIME-Version: 1.0 Received: by 10.100.235.1 with SMTP id i1mr3130803anh.40.1255950855276; Mon, 19 Oct 2009 04:14:15 -0700 (PDT) In-Reply-To: <69153eee-df41-458d-bb21-baf471302808@v37g2000prg.googlegroups.com> References: <69153eee-df41-458d-bb21-baf471302808@v37g2000prg.googlegroups.com> From: Michael Fellinger Date: Mon, 19 Oct 2009 20:13:55 +0900 Message-ID: <9c00d3e00910190413l3321fa84jb0c02db312a9ddf8@mail.gmail.com> Subject: Re: Question: Rack::CommonLogger To: rack-devel@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com On Mon, Oct 19, 2009 at 9:08 AM, Max wrote: > > In Rack::CommonLogger, how come the logger duplicates itself on each > call? =C2=A0(according to http://rack.rubyforge.org/doc/classes/Rack/Comm= onLogger.html) > Is it necessary, or to clear some sort of state, or...?? > > Just curious, was thinking of making my own logger and not sure under > which conditions I need to duplicate. > > Thanks, > Max At least in HEAD, it doesn't duplicate anymore: http://github.com/rack/rack/blob/master/lib/rack/commonlogger.rb --=20 Michael Fellinger CTO, The Rubyists, LLC 972-996-5199