On 19 Sep 2002, Bojan Smojver wrote: > On Thu, 2002-09-19 at 00:05, [EMAIL PROTECTED] wrote: > > > The easiest way, would be to put the filters in mod_log_config, and have > > that module save the information in a connection_rec vector. > > OK, I think I roughly understand what is the plan: > > - introduce c->bytes_in and c->bytes_out (c is conn_rec here) > - put connection based filters from mod_logio into mod_log_config with > one difference - count bytes in c->bytes_in and c->bytes_out > - every time the request is being logged, reset c->bytes_in and > c->bytes_out to zero > > I think I should be able to put together something like that. Thanks for > the tip.
Great, now one more change. :-) Don't add the fields to the structure. The conn_Rec has a vector for modules to add data to. Create a log_config structure, and add the fields there. This allows the core structures to remain as they are, and it still allows for logging the information. Since the data is collected and used by the same module, there is no reason to put the information in the core structure. Ryan _______________________________________________________________________________ Ryan Bloom [EMAIL PROTECTED] 550 Jean St Oakland CA 94610 -------------------------------------------------------------------------------