Re: Apache::LogFile?

[prev] [thread] [next] [Date index for 2005/04/22]

From: Rob Bloodgood
Subject: Re: Apache::LogFile?
Date: 22:30 on 22 Apr 2005
Geoffrey Young wrote:
> 
> Kevin White wrote:
> 
>>I use the old Apache::LogFile on a mod_perl 1.x app.  I'm working on
>>moving to mod_perl 2.x, and find the Apache::LogFile won't compile:
>>Makefile.PL uses Apache::src.
> 
> 
> since this module use XS calls I suspect that porting it would be a bit more
> complex than with most modules.  I'd email the author (doug :) and see if he
> is interested in supporting it with mp2, or knows someone who is using it
> and is interested in porting it over.

I looked at this last week, actually... the XS api has sure changed alot 
from 1.x!  And unfortunately, nobody seems to have spent the time (yet) 
writing an API doc for MP2 XS (still working on getting 2.0, I'm sure).

>>Are there any plans to move this module forward, or should I rewrite my app?
> 
> 
> I really don't know why this particular module is of interest these days.
> is there something you require that really can't be served by apache's
> native logging mechanisms or your own PerlLogHandler?

SPECIFICALLY, and the reason I stumbled across it, is that right now you 
can:

- make a CustomLog, which logs EVERY request
- warn into ErrorLog
- do something custom, which is often DBI, or else deal with files (and 
logrotation!) on your own.

The appeal of Apache::LogFile is that you can A) write messages only and 
exactly how AND WHEN you feel like, and B) its file open/close cycle is 
integrated into apache itself, so if you cycle apache, your customlog is 
opened with the server process itself.

If I had the time I would puzzle out the new XS stuff myself, but I'm 
starting with no docs and no previous apache2 background, so it's hard 
to justify the time.

L8r,
Rob

Apache::LogFile?
Kevin White 17:39 on 20 Apr 2005

Re: Apache::LogFile?
Geoffrey Young 13:20 on 21 Apr 2005

Re: Apache::LogFile?
Rob Bloodgood 22:30 on 22 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52