> Hello,
>
> In writing an article on syslogd and newsyslog, I've noticed something
> intensely annoying about newsyslog.conf.
>
> FreeBSD supports three different formats for dates in newsyslog.conf:
> raw hours since last rotation, ISO 8601, and FreeBSD-specific
> week-day-month.
>
> Wouldn't it make sense to standardize on one or the other of ISO8601
> or W-D-M for the default newsyslog.conf?
You need 'raw hours' format to support relative times, commonly used with
size parameters to control the growth of web logs. (ie "Rotate when size >
10M or 6 hours from last rotate")
You need ISO8601 to support rolling on fixed dates (1st of the month, etc.)
You need 'W-D-M' format to support rolling on a weekly/monthly/daily basis.
This can't be done using ISO8601 because ISO uses fixed dates. (How would
you specify rotating every monday using ISO8601, when the date of every
monday changes from month to month and year to year?)
As a point of reference, cron's time/date parameters are functionally a
combination of W-D-M and ISO8601.
--
Matt Emmerton
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message