<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nick Hammond &#187; sinatra</title>
	<atom:link href="http://www.nickhammond.com/category/sinatra/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickhammond.com</link>
	<description>freelance web developer in Chandler, AZ</description>
	<lastBuildDate>Sat, 22 May 2010 06:13:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy logging with Sinatra</title>
		<link>http://www.nickhammond.com/2009/03/28/easy-logging-with-sinatra/</link>
		<comments>http://www.nickhammond.com/2009/03/28/easy-logging-with-sinatra/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 00:23:40 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[sinatra]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.nickhammond.com/?p=302</guid>
		<description><![CDATA[UPDATED: Here is an updated version of how to log properly with Sinatra.  
config.ru

log = File.new&#40;&#34;sinatra.log&#34;, &#34;a+&#34;&#41;
$stdout.reopen&#40;log&#41;
$stderr.reopen&#40;log&#41;

app.rb

configure do
  LOGGER = Logger.new&#40;&#34;sinatra.log&#34;&#41; 
end
&#160;
helpers do
  def logger
    LOGGER
  end
end

Now whenever you need to debug something in your application or can&#8217;t figure out why something isn&#8217;t working just send the area [...]]]></description>
		<wfw:commentRss>http://www.nickhammond.com/2009/03/28/easy-logging-with-sinatra/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Bare Sinatra App for deploying to Passenger</title>
		<link>http://www.nickhammond.com/2009/03/27/bare-sinatra-app-for-deploying-to-passenger/</link>
		<comments>http://www.nickhammond.com/2009/03/27/bare-sinatra-app-for-deploying-to-passenger/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 08:10:55 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[sinatra]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.nickhammond.com/?p=297</guid>
		<description><![CDATA[I&#8217;ve been working on a handful of Sinatra applications recently and I&#8217;ve deployed them all using Rack on Passenger.  While Sinatra only does require one file to run on your box with mongrel, when it&#8217;s using rack with passenger it requires a few more directories and files. It&#8217;s pretty much your basic rack directory [...]]]></description>
		<wfw:commentRss>http://www.nickhammond.com/2009/03/27/bare-sinatra-app-for-deploying-to-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
