[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Svnserve Logging (Yet again)

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-06-28 07:50:06 CEST

[Madan U Sreenivasan]
> Or how about generating a log-file name by appending the date/time
> stamp, and once it reaches a specific (configured) size, open a new
> file with another generated name?

That's pretty nonstandard. The standard thing to do on Unix is to let
the administrator configure the log file name, and have a way to close
and reopen the log file, then let the admin and her cron jobs handle
everything else. What format would you want for the log time stamp,
anyway? Obviously some form of ISO-8601, but to what resolution?

Log file rotation is a solved problem, by time interval or by file size
or both, compressing and deleting old log files in configurable ways.
There's no need for each app to reinvent _any_ of it.

(Well, on Unix it's a solved problem; I don't know how these things are
handled on win32, which does have the added difficulty that it's not
easy to rename a file which a process has open. It might be worth
keeping this limitation in mind when adding logging to svnserve.)

Received on Wed Jun 28 07:51:14 2006

This is an archived mail posted to the Subversion Dev mailing list.