<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: dreamhost code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 02:22:01 GMT</pubDate>
    <description>DZone Snippets: dreamhost code</description>
    <item>
      <title>Watch a log and/or search for a certain term</title>
      <link>http://snippets.dzone.com/posts/show/2066</link>
      <description>If you're developing on a server that has all PHP errors turned off, you can still watch the error log (if you have access to this file). For example on a dreamhost account you could try this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tail -f /home/account/logs/website.com/http/error.log&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;As the errors pour in, you will see them come by. Change 'account' to the username you have on dreamhost and website.com to the domainname you host there. If the errors come in large amounts you can filter them by using grep:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tail -f /home/account/logs/website.com/http/error.log | grep -i "search_term"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now only errors containing 'search_term' will be shown.</description>
      <pubDate>Thu, 18 May 2006 00:29:47 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2066</guid>
      <author>yoghoyogho ()</author>
    </item>
  </channel>
</rss>
