From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.64.68.5 with SMTP id r5csp153326iet; Wed, 1 Aug 2012 03:58:03 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCIad75x4ELqX5IAFGgTARotc@googlegroups.com designates 10.224.117.66 as permitted sender) client-ip=10.224.117.66 Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCIad75x4ELqX5IAFGgTARotc@googlegroups.com designates 10.224.117.66 as permitted sender) smtp.mail=rack-devel+bncCIad75x4ELqX5IAFGgTARotc@googlegroups.com; dkim=pass header.i=rack-devel+bncCIad75x4ELqX5IAFGgTARotc@googlegroups.com Received: from mr.google.com ([10.224.117.66]) by 10.224.117.66 with SMTP id p2mr10133100qaq.7.1343818683012 (num_hops = 1); Wed, 01 Aug 2012 03:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=o6JMm+C9koMn41TPWQTo3adELBzGnfzVqiHkfnnxbW4=; b=R9+tcfNFvEJNutyhJ+NdVNn/hrSNMGJc7ZZMU9LEodN3WjeRfD+kBSKPnjStjqmD1b dG2WCU4VM11Gxe5q3ENOc9tYgq8DeqKxd8VvJOdbsItIeHiFaMGY+BRcbRrJlApl8b2Q 6LywdSp85G/Fi7EQ91so724JnobxlcjixiDIs= Received: by 10.224.117.66 with SMTP id p2mr2106666qaq.7.1343818682952; Wed, 01 Aug 2012 03:58:02 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.229.195.214 with SMTP id ed22ls1638226qcb.7.gmail; Wed, 01 Aug 2012 03:58:01 -0700 (PDT) Received: by 10.224.100.137 with SMTP id y9mr11627411qan.2.1343818681917; Wed, 01 Aug 2012 03:58:01 -0700 (PDT) Received: by 10.224.18.72 with SMTP id v8msqaa; Tue, 31 Jul 2012 15:42:24 -0700 (PDT) Received: by 10.236.74.161 with SMTP id x21mr3515162yhd.13.1343774544779; Tue, 31 Jul 2012 15:42:24 -0700 (PDT) Date: Tue, 31 Jul 2012 15:42:23 -0700 (PDT) From: Chris Johnson To: rack-devel@googlegroups.com Message-Id: <5b9ef89c-7467-433c-9fa1-9044edeb4013@googlegroups.com> Subject: Logging for debugging MIME-Version: 1.0 X-Original-Sender: wchrisjohnson@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="----=_Part_826_16697341.1343774543749" ------=_Part_826_16697341.1343774543749 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I'm simply trying to configure a *very* simple Rack app to enable logging to a file so I can tell what's going on when I exercise the app. I am using Grape (gem) within a basic Rack app to build an API, and I can't tell what is going on. I've spent over an hour, and yet cannot find ANYTHING on how to configure a logger inside Rack to log text to a file. I'll also say that I'm mounting the Rack app inside a Rails app, and so I need to be able to log to a file so I can tell how it's behaving within Rails. I don't necessarily need to have the two apps (Rails and Rack) logging to the same file. Any help would be greatly appreciated. Chris ------=_Part_826_16697341.1343774543749 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi,

I'm simply trying to configure a *very* simple Rack app to enable logging to a file so I can tell what's going on when I exercise the app. I am using Grape (gem) within a basic Rack app to build an API, and I can't tell what is going on. I've spent over an hour, and yet cannot find ANYTHING on how to configure a logger inside Rack to log text to a file. 

I'll also say that I'm mounting the Rack app inside a Rails app, and so I need to be able to log to a file so I can tell how it's behaving within Rails. I don't necessarily need to have the two apps (Rails and Rack) logging to the same file.

Any help would be greatly appreciated.

Chris
------=_Part_826_16697341.1343774543749--