Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Access logging under mod_perl2

by rob_au (Abbot)
on Jul 22, 2006 at 18:32 UTC ( #563033=perlquestion: print w/replies, xml ) Need Help??
rob_au has asked for the wisdom of the Perl Monks concerning the following question:

With a small project that I am currently working on, I am writing a protocol handler which is being embedded within Apache by way of mod_perl2. When this protocol handler is accessed however, there is no entry of this access in the server access log - This of course is not unexpected given that the HTTP engine is not handling the request. My question is however, how can I write to the server access log within my protocol handler to record these server accesses? The Apache2::Log module only appears to offer mechanisms by which to send categorised events to the server error log, an avenue of logging which I wish to reserve for internal events within my protocol handler.

Is there any other direction or suggestion which fellow monks can provide me on this problem?


perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"

Replies are listed 'Best First'.
Re: Access logging under mod_perl2
by Moron (Curate) on Jul 24, 2006 at 14:03 UTC
    Apache2::LogF does allow you at least to format your own messages which you could then just append to the server logfile, but I feel we really need to know what has to be handled and with what messages before being able to suggest how to merge it into the server log.


    Free your mind

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://563033]
Approved by Hue-Bond
Front-paged by planetscape
[stevieb]: cheers beech. twas totally my mistake, and I got bit. When things work for so long without issue, one becomes complacent (ie. replace we/one with I ;) I've been copy/pasting that around for a few years without a hiccup, so when...
[stevieb]: choroba pointed that out, I was just, you know, *sigh*. In effect, I was lucky and fortunate
[stevieb]: Kind of like my regex-fu went out the window, but only while looking at that specific file ;)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-07-25 23:39 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (383 votes). Check out past polls.