cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CRONOLOG: Not cutting in middle of line




On Tuesday, Sep 2, 2003, at 22:01 Europe/Rome, Andrew Ford wrote:

I wouldn't necessarily switch to buffered IO, but what could be done is to check the end of the buffer if the timer has gone off. If the last character (or two characters) is not the end of line marker then do a non-blocking read on the input to see if more data is available, and at least copy the remainder of the split line to the old log file before switching to the new one.
This seems to me *much better* than switching to dangerous stdio buffered
routines.
A "-L" switch for "line-oriented cron splitting" (or something equivalent)
seems a good thing to me.
I'll wait for this new release then.


Thank you for the excellent software so far!

Regards

luciano.
--
 /"\                         /Via A. Salaino, 7 - 20144 Milano (Italy)
 \ /  ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250
  X   AGAINST HTML MAIL    /  E-MAIL: posthamster@xxxxxxxxxxxxxxxxxxx
 / \  AND POSTINGS        /   WWW: http://www.mannucci.ORG/




Copyright © 1996-2004 Andrew Ford and Ford & Mason Ltd