Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Problems? Is your data what you think it is?
 
PerlMonks  

Looking for mod_perl docs on writing logfile handler.

by Sihal (Pilgrim)
on Jul 29, 2003 at 09:46 UTC ( [id://278824]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

Sihal has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks,

I understand that with a Perl*Handler I can intervene at any stage of Apache's processing of my request.
But, not being very familiar with the Apache's callback hooks mechanism, and not being that much familiar with Perl*Handlers, I don't know how to do the simple following thing: writing my own log with a PerlHanlder instead of letting Apache do it. (Or injecting aditionnal info in the logs that Apache generates, like the value of an environement variable.)

If somebody could point me some links to a good explanation of this aspect of mod_perl, I'd be very glad. (the mod_perl documentation at perl.apache.org isn't helping, or maybe it's just me. )
Sihal

20030730 Edit by jeffa: Changed title from 'mod_perl : where can I find some doc about....'

  • Comment on Looking for mod_perl docs on writing logfile handler.

Replies are listed 'Best First'.
(jeffa) Re: Looking for mod_perl docs on writing logfile handler
by jeffa (Bishop) on Jul 29, 2003 at 10:15 UTC
      Well I'd rather not use any books (not that I don't like reading but the company won't buy them).
      I'll have a look at Apache::LogFile thanx, but I think I already peered into it.
Re: Looking for mod_perl docs on writing logfile handler
by edoc (Chaplain) on Jul 29, 2003 at 10:18 UTC
Re: Looking for mod_perl docs on writing logfile handler
by derby (Abbot) on Jul 29, 2003 at 10:39 UTC
      I do customise Apache's log. But I want to pass an env variable into the log, with isn't possible from CGI.

      Thanks for the online books links I wasn't aware they could be on the net. :-)
      Thanks a loot for the links, they contain all I needed :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://278824]
Approved by fglock
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.