You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kevin White <kw...@kevbo.org> on 2005/04/20 19:39:41 UTC

Apache::LogFile?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Are there any plans to move this module forward, or should I rewrite my app?

Thanks,

Kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCZpPduiTxnufRf9gRAs2IAJ9tsTjZF60PYCItEmhM1lAyibHv5ACfUsal
T45qaIm0lNw7F5V7zD8KfN0=
=C4E1
-----END PGP SIGNATURE-----


Re: Apache::LogFile?

Posted by Rob Bloodgood <ro...@exitexchange.com>.
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

Re: Apache::LogFile?

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

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.

> 
> 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?

sorry I can't be of more help.  if I had more free time I'd port it for you.

--Geoff