www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Hulewicz <...@intanet.com>
Subject mod_log-any/3292: CustomLog does not show environment variables
Date Mon, 26 Oct 1998 10:20:30 GMT

>Number:         3292
>Category:       mod_log-any
>Synopsis:       CustomLog does not show environment variables
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Oct 26 02:30:00 PST 1998
>Originator:     dom@intanet.com
>Release:        1.3.3 (Unix)
SunOS 4.1.4 sun4c, gcc version 2.7.0
The documentation for mod_log_config shows that you can use %{FOOBAR}e
strings in a CustomLog line to add contents from environment variables
into log files. I have tried the following in a virtual host:

LogFormat "%h %l %u %t \"%{REQUEST_METHOD}e %{HTTP_HOST}e %{REQUEST_URI}e %{SERVER_PROTOCOL}e\"
%s %b" fullurl
CustomLog /logs/testlog fullurl

But in the log file entries, the environment variables are always replaced
by hyphens, e.g. some.site.com - - [26/Oct/1998:10:08:42 +0000] "- - - -" 302 229
Try it for yourself !  :-)
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message