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

Re: "witty subject line about logging feature"

From: Michael Sweet <mike_at_easysw.com>
Date: 2005-07-27 22:03:38 CEST

John Peacock wrote:
> Greg Hudson wrote:
>
>> It's less trivial than you think, because you need to take into account
>> log-rolling. This requires your process to accept a signal which causes
>> you to close and re-open the log file.
>
>
> It's worse than that. Win32's filesystem doesn't permit renaming open
> files, so the file must be closed, a delay must be added in during which
> time the filesystem actually closes the file (which may be delayed due
> to AV scanner hooks), and only then can you rename the file. This
> usually means that the library must buffer lines during that little
> dance...

Either that, or you put the log rotation logic into the API (i.e.
a configuration option with time and/or size limits) so that you
avoid that issue... However, depending on the design this could
open up additional issues since you potentially have multiple
writers to the same log file (and therefore potentially multiple
processes trying to rotate the log...)

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 27 22:04:49 2005

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