08-08-04 10:49 PM
Audi wrote:
> Hi,
> I write a module with Apache Api.
> I used ap_log_printf. It write the message to the "error_log" file
> of apache.
> Which Api should I use (or any setting to use) in order to write the
> message to "access_log" file?
> appreciate your help ...
You shouldn't be writing directly to the access_log. You can provide
variables which users can choose to include. An easy way to do this is
to put the info in an apache "note", which can log using %{foobar}n in
their logformat.
Alternatively, you can see how mod_logio provides extra fields for the
access log.
Joshua.
[ Post a follow-up to this message ]
|