Re: logfile helper

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sat, 2 Jun 2007 19:33:24 +0800

On Sat, Jun 02, 2007, Robin Bowes wrote:

> > 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 ;)

Its C in s26_logfile_daemon. Just read logfile.c and struct logfile in structs.h,
then see how these function pointers are set:

    LOGLINESTART * f_linestart;
    LOGWRITE * f_linewrite;
    LOGLINEEND * f_lineend;
    LOGFLUSH * f_flush;
    LOGROTATE * f_rotate;
    LOGCLOSE * f_close;

Adrian
Received on Sat Jun 02 2007 - 05:31:43 MDT

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