From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs58799bkj; Wed, 17 Jun 2009 20:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.229.82.77 as permitted sender) client-ip=10.229.82.77; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.229.82.77 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.229.82.77]) by 10.229.82.77 with SMTP id a13mr312263qcl.18.1245296956913 (num_hops = 1); Wed, 17 Jun 2009 20:49:16 -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-spf:authentication-results:received :dkim-signature:domainkey-signature:mime-version:received:date :message-id:subject:from:to:content-type:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; bh=RqV+Xo5LQ18IyRbMjsiUL0B6iIkFEDW4sFAx40Ua5k0=; b=1fGOfOyZc59E8791V1L7k8oowIgfJgKFS0jbLSnJvFO5VRfoSZ/sNwlmE1G1P9u0hu 303PMGs8t7+2aNBlAFdy3shPSVL4Tr9ggP+WwHEghAohWPTODNiqPwOVQsKsd52boli/ F+DTA1WKoG3D7SaYlzC6M9jPS76WIVpF5fXZQ= 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:date:message-id :subject:from:to:content-type:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; b=bOkKkg+HZhU3FDutlZFPfSl9t30XgM/TXmkQ6vLrv8GcBTvNOHNVskksBvQDaLTlBR 8+/nyoixkOrctplbWvFYLju7Iay73e1zRUyvLrsvF21IM6tfXvCjlfKLedCat42tpXix xoFoi2BcIi/Clf/HEpIcTckRdYgsXlxbacYTc= Received: by 10.229.82.77 with SMTP id a13mr37795qcl.18.1245296956687; Wed, 17 Jun 2009 20:49:16 -0700 (PDT) Received: by 10.230.110.72 with SMTP id m8gr1460vbp.0; Wed, 17 Jun 2009 20:49:10 -0700 (PDT) X-Sender: gmelton@gmail.com X-Apparently-To: rack-devel@googlegroups.com Received: by 10.229.85.15 with SMTP id m15mr406934qcl.6.1245296949093; Wed, 17 Jun 2009 20:49:09 -0700 (PDT) Return-Path: Received: from mail-qy0-f171.google.com (mail-qy0-f171.google.com [209.85.221.171]) by gmr-mx.google.com with ESMTP id 23si154169qyk.8.2009.06.17.20.49.08; Wed, 17 Jun 2009 20:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gmelton@gmail.com designates 209.85.221.171 as permitted sender) client-ip=209.85.221.171; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gmelton@gmail.com designates 209.85.221.171 as permitted sender) smtp.mail=gmelton@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by mail-qy0-f171.google.com with SMTP id 1so1078401qyk.13 for ; Wed, 17 Jun 2009 20:49:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=3YV0vCbln2BNBUqYl9rPTOlMOSESFLbPtf8UPChPjtk=; b=GNZH9C5G/RKY0lqjWy7Ve44/FJJ7afxs64bxPH042kn0N3miyzJ4FL9PwFv+WzpwkE jjSAdEE/F5sWOOWcWaCulOsaryS7um38pC/M5sIxfw4+5cbAjet2Ne2qodDLRv6npdi+ tl/qzXJWmG5ebz6BPoVX54yKehfH9dT26OwtI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fQeOJGagpYSUj5bZREn3Ic0n06iCnHGIeV3CEMsC+72gSi5KoD7+g4fFth79euR517 4IdRMlgXMqD3z+SnzpN6dSttPyOItwRr5TD9AhPzuYl5HDPbr+OcIfFj8I5R/nXGOsp5 60ZCeXoSUvAMhzfs0aXrPUOLDbB92hUP18+t4= MIME-Version: 1.0 Received: by 10.229.94.139 with SMTP id z11mr178443qcm.6.1245296948005; Wed, 17 Jun 2009 20:49:08 -0700 (PDT) Date: Wed, 17 Jun 2009 20:49:07 -0700 Message-ID: <5976e8970906172049q17f7b9aetd9bb00b64c89430d@mail.gmail.com> Subject: Common Logger Help From: Greg Melton To: rack-devel@googlegroups.com Content-Type: multipart/alternative; boundary=001636426d4939ce7b046c974a2d 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 --001636426d4939ce7b046c974a2d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Is there anyway to configure the common logger to output to a file? I can see one of the options when calling rackup is a placeholder for an access log. options = {:Port => 9292, :Host => "0.0.0.0", :AccessLog => []} >From what I can tell this isn't used anywhere. I've tried this and it works up until you run a rackup app daemonized: rackup config.ru > /full/path/file.log Once daemonized the following lines are called: STDIN.reopen "/dev/null" STDOUT.reopen "/dev/null", "a" STDERR.reopen "/dev/null", "a" I'm assuming this kills the outputing so it never reaches the log file. I know the path is change to root during the daemonization. I've experimented with commenting out the STDOUT line above and I've had mixed results in different environments. I was hoping a solution existed without having to touch the rack code base. Any help would be greatly appreciated. Thanks, Greg --001636426d4939ce7b046c974a2d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is there anyway to configure the common logger to output to a file?

= I can see one of the options when calling rackup is a placeholder for an ac= cess log.

options =3D {:Port =3D> 9292, :Host =3D> "0.0.0= .0", :AccessLog =3D> []}

From what I can tell this isn't used anywhere.

I've trie= d this and it works up until you run a rackup app daemonized:

rackup= config.ru > /full/path/file.log
Once daemonized the following lines are called:

=A0=A0=A0 STDIN.reop= en "/dev/null"
=A0=A0=A0 STDOUT.reopen "/dev/null", = "a"
=A0=A0=A0 STDERR.reopen "/dev/null", "a&quo= t;

I'm assuming this kills the outputing so it never reaches the= log file. I know the path is change to root during the daemonization.

I've experimented with commenting out the STDOUT line above and I&#= 39;ve had mixed results in different environments. I was hoping a solution = existed without having to touch the rack code base.

Any help would b= e greatly appreciated.

Thanks,
Greg
--001636426d4939ce7b046c974a2d--