You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Dominic Hulewicz <do...@intanet.com> on 1998/10/26 11:20:30 UTC
mod_log-any/3292: CustomLog does not show environment variables
>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
>Last-Modified:
>Originator: dom@intanet.com
>Organization:
apache
>Release: 1.3.3 (Unix)
>Environment:
SunOS 4.1.4 sun4c, gcc version 2.7.0
>Description:
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
>How-To-Repeat:
Try it for yourself ! :-)
>Fix:
Nope.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@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! ]