httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Moo <mookimo...@gmail.com>
Subject Re: How to write to log from own functions?
Date Wed, 31 Jul 2019 14:58:07 GMT
Thanks again Eric,

I did suspect that that would be the solution.

I feel another parameter coming on.

On Wed, 31 Jul 2019 at 14:49, Eric Covener <covener@gmail.com> wrote:
>
> On Wed, Jul 31, 2019 at 9:44 AM Bill Moo <mookimoo73@gmail.com> wrote:
> >
> > As the subject says really. How can I write to the log from my own
> > functions I see nothing (obvious) in the documentation on how to do
> > this. The functions that are there require a server_rec, connection or
> > pool pointer, that I don’t have access to in my own functions.
>
> ap_log_rerror is passed a request_rec. If you want to use apache's
> logging, find a way to pass a request or conn_rec or pool down.

Mime
View raw message