Re: logfile helper

From: Robin Bowes <robin-lists@dont-contact.us>
Date: Sat, 02 Jun 2007 12:24:50 +0100

Adrian Chadd wrote:
> On Sat, Jun 02, 2007, Robin Bowes wrote:
>
>> Adrian, I'm happy to attempt to port the Logfile IO stuff to 2.6 if I
>> can get some sort of overview of how it works. Do you have any docs
>> describing how your logfile stuff works?
>
> Its pretty simple. the s26_logfile_daemon code abstracts out the
> logfile processing stuff a little. There's a few calls you need to
> provide in the logfile struct:
>
> * a call which says "this is the beginning of the line"
> * a call which adds data to the line
> * a call which says "this is the end of the line"
> * a call which handles rotation
> * a call which handles flushing the current data to disk (a "sync" call)
>
> It should be straightforward if you look at logfile.c and the logfile struct
> layout. Its slightly different from how the codebase worked before (where
> "flush" seemed to be the end of line and "sync" call) so don't try to look
> at the current squid-2 or squid-2.6 codebase.

Hmmm, I've had a quick look and it's not clear. But maybe I need to
study it in more detail. I don't really grok C/C++ - I can read and
understand with effort but it's not something I've worked with much.

It sure would be nice to get it in 2.6.STABLE2 ;)

> It'll all be incorporated into Squid-3 as I've got a seperate branch
> which implements a Logfile class to do the above. Implementing a pipe helper
> will be pretty trivial in Squid-3.

I doubt we'd jump to squid3 for a while yet - we'll let that settle down
 for a while after the release.

Thanks,

R.
Received on Sat Jun 02 2007 - 05:25:15 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:07 MDT