diff options
author | Stefan Fritsch <sf@apache.org> | 2011-11-04 08:27:07 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-11-04 08:27:07 +0100 |
commit | 6c57e61b1b493dafeb547d2ed78aa0859f9744cf (patch) | |
tree | 799c7853ff3cf1f1a6c080e9d20346a5cd6299d6 /docs/manual/mod/mod_log_config.xml | |
parent | To prevent overboarding memory usage, limit line length to 1MB (diff) | |
download | apache2-6c57e61b1b493dafeb547d2ed78aa0859f9744cf.tar.xz apache2-6c57e61b1b493dafeb547d2ed78aa0859f9744cf.zip |
Unify syntax of config directives taking an expression as optional contition argument
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197413 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_log_config.xml')
-rw-r--r-- | docs/manual/mod/mod_log_config.xml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/manual/mod/mod_log_config.xml b/docs/manual/mod/mod_log_config.xml index c7d260588b..1943d5c266 100644 --- a/docs/manual/mod/mod_log_config.xml +++ b/docs/manual/mod/mod_log_config.xml @@ -388,7 +388,8 @@ <description>Sets filename and format of log file</description> <syntax>CustomLog <var>file</var>|<var>pipe</var> <var>format</var>|<var>nickname</var> -[env=[!]<var>environment-variable</var>]</syntax> +[env=[!]<var>environment-variable</var>| +expr=<var>expression</var>]</syntax> <contextlist><context>server config</context><context>virtual host</context> </contextlist> @@ -445,12 +446,13 @@ </example> <p>The third argument is optional and controls whether or - not to log a particular request based on the - presence or absence of a particular variable in the server - environment. If the specified <a href="../env.html">environment - variable</a> is set for the request (or is not set, in the case - of a '<code>env=!<var>name</var></code>' clause), then the - request will be logged.</p> + not to log a particular request. The condition can be the + presence or absence (in the case of a '<code>env=!<var>name</var></code>' + clause) of a particular variable in the server + <a href="../env.html">environment</a>. Alternatively, the condition + can be expressed as arbitrary boolean <a href="../expr.html" + >expression</a>. If the condition is not satisfied, the request + will not be logged.</p> <p>Environment variables can be set on a per-request basis using the <module>mod_setenvif</module> |