<?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>zomo tech &#187; todo</title>
	<atom:link href="http://www.zomo.co.uk/category/todo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zomo.co.uk</link>
	<description>Is it done yet?</description>
	<lastBuildDate>Wed, 24 Feb 2010 09:18:37 +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>rotatelogs</title>
		<link>http://www.zomo.co.uk/2005/10/rotatelogs/</link>
		<comments>http://www.zomo.co.uk/2005/10/rotatelogs/#comments</comments>
		<pubDate>Thu, 20 Oct 2005 12:51:41 +0000</pubDate>
		<dc:creator>lemon</dc:creator>
				<category><![CDATA[todo]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://tech.zomo.co.uk/?p=3</guid>
		<description><![CDATA[I&#8217;m basically a fan of rotatelogs(1) for Apache logging: no need to gracefully restart, easy filenames to script with, encourages log ageing.
I do however find myself forever doing stuff like
$ ls -tr /a/log/dir &#124; tail
error_log.1129593600
error_log.1129680000
error_log.1129766400
$ tail -f error_log.1129766400 to diagnose a problem.
What would be cool was if rotatelogs linked, say, error_log.current to the, er, current [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m basically a fan of <code>rotatelogs(1)</code> for Apache logging: no need to gracefully restart, easy filenames to script with, encourages log ageing.</p>
<p>I do however find myself forever doing stuff like<br />
<code>$ ls -tr /a/log/dir | tail<br />
error_log.1129593600<br />
error_log.1129680000<br />
error_log.1129766400<br />
$ tail -f error_log.1129766400</code> to diagnose a problem.</p>
<p>What would be cool was if <code>rotatelogs</code> linked, say, <code>error_log.current</code> to the, er, current log. If it used a hard link, you could probably use <code>tail</code>&#8217;s -F flag to seemlessly glide over rotations.</p>
<p>Update: I looked at the source; what immediately occurs to me is that both soft and hard linking aren&#8217;t particularly portable, and Apache runs on many different platforms. It&#8217;s probably more straightforward to do this with a shell script or similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zomo.co.uk/2005/10/rotatelogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
