Re: more contrib: log rotator
Ed L. <pgsql@bluepolka.net>
From: "Ed L." <pgsql@bluepolka.net>
To: "scott.marlowe" <scott.marlowe@ihs.com>,
Peter Eisentraut <peter_e@gmx.net>
Cc: Andrew Sullivan <andrew@libertyrms.info>, <pgsql-hackers@postgresql.org>
Date: 2003-04-04T17:06:42Z
Lists: pgsql-hackers
On Friday April 4 2003 10:04, Ed L. wrote: > By way of feature ideas, one very convenient but not widely used feature > of Apache's log rotator is the ability to specify a strftime() format > string for the file extension. For example, if I want to have my logs > rollover every 24 hours and be named log.Mon, log.Tue, log.Wed, I say > something like > > pg_ctl start | rotatelogs 86400 "%a" More accurately, something like this: pg_ctl start | rotatelogs 86400 "log.%a" Ed