<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Logging with Sinatra and Passenger &#8211; Another try</title>
	<atom:link href="http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/</link>
	<description>eval("eval(\"eval(\\\"puts 'a ruby weblog'\\\")\")")</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:42:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott Tadman</title>
		<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/comment-page-1/#comment-340</link>
		<dc:creator>Scott Tadman</dc:creator>
		<pubDate>Mon, 30 Aug 2010 18:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.gittr.com/?p=37#comment-340</guid>
		<description>If you want to follow your logs real-time using tail, add:

    log.sync = true</description>
		<content:encoded><![CDATA[<p>If you want to follow your logs real-time using tail,&nbsp;add:</p>
<p>    log.sync =&nbsp;true</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew Neil</title>
		<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/comment-page-1/#comment-159</link>
		<dc:creator>Drew Neil</dc:creator>
		<pubDate>Sat, 27 Jun 2009 09:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.gittr.com/?p=37#comment-159</guid>
		<description>Great tip, thanks!

It was working fine for me with passenger 2.0.6, but I just upgraded to passenger 2.2.4 and found that my application wouldn&#039;t start. I was presented with the following error:

    Error message:
     not opened for reading
    Exception class:
     IOError 

I managed to fix this, by changing the mode from &quot;a&quot; to &quot;a+&quot;, as follows:

    log = File.new(&quot;sinatra.log&quot;, &quot;a+&quot;)

Now everything is rosie again.</description>
		<content:encoded><![CDATA[<p>Great tip,&nbsp;thanks!</p>
<p>It was working fine for me with passenger 2.0.6, but I just upgraded to passenger 2.2.4 and found that my application wouldn&#8217;t start. I was presented with the following&nbsp;error:</p>
<p>    Error message:<br />
     not opened for reading<br />
    Exception class:<br />&nbsp;IOError </p>
<p>I managed to fix this, by changing the mode from &#8220;a&#8221; to &#8220;a+&#8221;, as&nbsp;follows:</p>
<p>    log = File.new(&#8220;sinatra.log&#8221;,&nbsp;&#8220;a+&#8221;)</p>
<p>Now everything is rosie&nbsp;again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the blog &#124; squarefour &#124; Deploying Sinatra on Passenger</title>
		<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/comment-page-1/#comment-116</link>
		<dc:creator>the blog &#124; squarefour &#124; Deploying Sinatra on Passenger</dc:creator>
		<pubDate>Fri, 06 Mar 2009 07:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.gittr.com/?p=37#comment-116</guid>
		<description>[...] to John Nunemaker and Chris Schneider for the [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] to John Nunemaker and Chris Schneider for the&nbsp;[&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ideas.each &#38;:post &#187; Stepping off the Rails - adventures with Sinatra (Part 2)</title>
		<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/comment-page-1/#comment-97</link>
		<dc:creator>ideas.each &#38;:post &#187; Stepping off the Rails - adventures with Sinatra (Part 2)</dc:creator>
		<pubDate>Sun, 21 Dec 2008 17:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.gittr.com/?p=37#comment-97</guid>
		<description>[...] out. It would be nice to log these to a file, and we can do that as well in config.ru (based on this tip from Chris Schneider). We&#8217;ll also need to turn error raising back on, since by default [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] out. It would be nice to log these to a file, and we can do that as well in config.ru (based on this tip from Chris Schneider). We&#8217;ll also need to turn error raising back on, since by default&nbsp;[&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Mizerany</title>
		<link>http://www.gittr.com/index.php/archive/logging-with-sinatra-and-passenger-another-try/comment-page-1/#comment-74</link>
		<dc:creator>Blake Mizerany</dc:creator>
		<pubDate>Fri, 10 Oct 2008 21:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.gittr.com/?p=37#comment-74</guid>
		<description>I&#039;ve found using thin&#039;s logging to be the best.  

Just run:

thin start -R mysinatraapp.rb -D -l logs/mysinatraapp.log

The -D will give you verbose debugging information for internal exceptions</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found using thin&#8217;s logging to be the&nbsp;best.  </p>
<p>Just&nbsp;run:</p>
<p>thin start -R mysinatraapp.rb -D -l&nbsp;logs/mysinatraapp.log</p>
<p>The -D will give you verbose debugging information for internal&nbsp;exceptions</p>
]]></content:encoded>
	</item>
</channel>
</rss>
