mod_log_extra

Helper module for mod_log_config that makes possible to print whole tables to access-log.

It adds currently (version 0.05) tree directives to "LogFormat" directive.

   %{delim}I   Print all input headers
   %{delim}O   Print all output headers
   %{delim}E   Print enviroment variables

   delim is delimeter string between NAME=VALUE pairs.
   delim can have c-style escapes \r,\t,\f,\n,\b,\a,\e,\xXX (hex-value).

Source

mod_log_extra.c   (0.05) first relase version.

Where to use?

Most usefull this is when some special kind of user-agents (like wap-gateways) are calling your server and you what all possible information coming from client to logged out.

Config example

Example format (extended from common):

LogFormat "%h %l %u %t \"%r\" %>s %b\n  IN:\n\t%{\n\t}I\n  OUT:\n\t%{\n\t}O\n  ENV:\n\t%{\n\t}E\n------------" commonall

CustomLog logs/access_log commonall

Output (client Mozilla 1.1b):
127.0.0.1 - - [10/Sep/2002:12:09:43 +0300] "GET /apache_pb.gif HTTP/1.1" 200 2326
  IN:
        Host=localhost:8050
        User-Agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722
        Accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
Accept-Language=fi, en;q=0.50
        Accept-Encoding=gzip, deflate, compress;q=0.9
        Accept-Charset=ISO-8859-1, utf-8;q=0.66, *;q=0.66
        Keep-Alive=300
        Connection=keep-alive
        Referer=http://localhost:8050/
  OUT:
        Last-Modified=Wed, 03 Jul 1996 06:18:15 GMT
        ETag="27a95-916-a89837c0"
        Accept-Ranges=bytes
        Content-Length=2326
        Keep-Alive=timeout=15, max=99
        Connection=Keep-Alive
        Content-Type=image/gif
  ENV:

------------