|
|||||||||
![]() |
|||||||||
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: CRONOLOG: Not cutting in middle of line
For the purpose of logging, CRONOLOG should use the line buffered approach. (That's what I use it for) But, for the other people who are using it for various other reasons, like splitting streaming MP3's, etc. it should still work like it is. Maybe the project should split into two projects with different goals? Ian ----- Original Message ----- From: "Luciano L.Mannucci" <l@xxxxxx> To: "Wim Godden" <wim@xxxxxxxxxx> Cc: <cronolog-users@xxxxxxxxxxxxxxxxxx> Sent: Tuesday, September 02, 2003 12:18 PM Subject: Re: CRONOLOG: Not cutting in middle of line > > On Tuesday, Sep 2, 2003, at 15:51 Europe/Rome, Wim Godden wrote: > > > Is there some way to stop cronolog from cutting in the middle of a line > > ? It now splits a logfile in the middle of a line, instead of at the > > end > > of a line. > I've noticed that too. > I've tried to rewrite the io part of cronolog, switching from raw > (open, close, read, write) to line buffered (fopen, fclose, fread, > fwrite, fflush), though I'm not sure it is a good idea safety wise, > and - of course - I'm still testing it. > > Regards, > > luciano mannucci. > -- > /"\ /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/ > > >
|